This project is a chatbot user interface (UI) that uses Python, Gradio, and OpenAI's ChatGPT-Turbo to provide different chatbot modes to users. ChatGPT-Turbo is a large language model trained by OpenAI that can generate human-like text based on given prompts.
To install this project, please follow the instructions below:
- Clone the repository to your local machine using the following command:
git clone https://github.com/your-username/chatbot-ui.git
- Navigate to the project directory:
cd chatbot-ui
- Install the required dependencies using
pip
:
pip install -r requirements.txt
To run the chatbot UI, execute the following command:
python gradio_app.py
This will start a local web server, and you can access the chatbot UI by opening a web browser and navigating to http://localhost:7878/
.
The chatbot UI provides different modes for users to interact with. Currently, the available modes are:
- Question Answering mode: In this mode, users can ask the chatbot questions, and it will attempt to answer them based on its training data.
- Storytelling mode: In this mode, users can give the chatbot a prompt, and it will generate a short story based on that prompt.
- Poetry mode: In this mode, users can give the chatbot a prompt, and it will generate a short poem based on that prompt.
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make your changes and commit them to your branch.
- Push your changes to your forked repository.
- Create a pull request to merge your changes into the main repository.
This project is licensed under the MIT License. See the LICENSE file for details.