hirusha-adi / Chat

A simple chat applicaiton (a web app) powered by OpenAI API and Gradio with the ability to retain chat history.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat

A simple chat applicaiton (a web app) powered by OpenAI API and Gradio.

Features

  • Chat with a bot: Interact with the chatbot in a simple, intuitive interface.
  • Save chat history: Optionally save chat history to a file and reload it on startup.
  • Customizable: Configure the bot's name, user name, and whether to load history through environment variables.

Setup

# Install `python3`, `git`, and a text editor (`nano`)
sudo apt update && sudo apt install python3 python3-pip git nano -y

# Clone the repository and cd into it
git clone "https://github.com/hirusha-adi/Chat.git"
cd ./Chat

# Install dependencies
python3 -m pip install -r requirements.txt

# Move the example env file and move it
mv .env.example .env

# edit the .env file to set the OpenAI API key and other configurations 
nano .env

# start the web app
python ./app.py

Image Showcase

Web User Inrerface: image

Console Output: image

About

A simple chat applicaiton (a web app) powered by OpenAI API and Gradio with the ability to retain chat history.

License:MIT License


Languages

Language:Python 100.0%