Skip to content

Chat Advisor is a Python app utilizing the ChatGPT API to suggest answers for chat conversations

License

Notifications You must be signed in to change notification settings

FzS92/ChatAdvisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MITLicense Python application Python package Pylint

Chat Advisor

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

Installation

  1. Clone the repository and go to the downloaded file:
git clone https://github.com/FzS92/ChatAdvisor.git
cd ChatAdvisor
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Obtain an OpenAI API key. You can sign up for an account and obtain the key from the OpenAI website.

Usage

  1. Run the application:
python app.py
  1. The application will launch a web interface where you can input the necessary information.

  2. Provide the OpenAI API key, paste the chat history, enter your username, and specify the other usernames in the chat history (separated by commas).

  3. Click the "Submit" button to generate the suggested answers.

  4. The generated answers will be displayed in the web interface.

App Screenshot

HuggingFace Space

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

Acknowledgments

The application uses the ChatGPT-OpenAI API to generate suggested answers.

About

Chat Advisor is a Python app utilizing the ChatGPT API to suggest answers for chat conversations

Topics

Resources

License

Stars

Watchers

Forks

Languages