This project implements a chatbot using Gradio and OpenAI's text-davinci-003 model. The chatbot can generate responses to user input based on the trained model.
2023-08-10-20-49-44.mp4
-
Set up your OpenAI API credentials by replacing YOUR_API_KEY with your actual API key in the openai.api_key line of the code
-
Install the required dependencies:
pip install gradio openai
- Run the Gradio interface:
python chatbot.py
- Enter your message in the input textbox and the chatbot will generate a response based on the trained model.