This is a Python application that uses ChatGPT to generate suggested answers for a given chat history. It takes input in the form of a chat history and user information, and provides two types of answers: a longer answer and a shorter answer.
The code for this project is also published on HuggingFace Space. You can access the web interface and try out the Chat Advisor by visiting the following link:
HuggingFace Space: Chat Advisor
- Clone the repository and go to the downloaded file:
git clone https://github.com/FzS92/ChatAdvisor.git
cd ChatAdvisor
- Install the required dependencies:
pip install -r requirements.txt
- Obtain an OpenAI API key. You can sign up for an account and obtain the key from the OpenAI website.
- Run the application:
python app.py
-
The application will launch a web interface where you can input the necessary information.
-
Provide the OpenAI API key, paste the chat history, enter your username, and specify the other usernames in the chat history (separated by commas).
-
Click the "Submit" button to generate the suggested answers.
-
The generated answers will be displayed in the web interface.
The code for this project is also published on HuggingFace Space. You can access the web interface and try out the Chat Advisor by visiting the following link:
HuggingFace Space: Chat Advisor
The application uses the ChatGPT-OpenAI API to generate suggested answers.