This project demonstrates a simple chatbot implementation using OpenAI's GPT-3 model for text generation and Gradio for creating a user-friendly interface. The chatbot can converse with users using both text and voice inputs.
- Clone the repository:
git clone https://github.com/your-username/chatbot.git
cd chatbot
- Install the required dependencies:
pip install -r requirements.txt
-
Obtain an API key from OpenAI by signing up on their website.
-
Replace
'add your open ai api key here'with your OpenAI API key in thechatgpt_apifunction. -
Run the code:
python chatbot.py
- Once the program is running, the Gradio interface will open in your default web browser. You can interact with the chatbot by providing text or voice inputs.
- OpenAI API
- Gradio
- Whisper
- gTTS
- ffmpeg (Make sure it's installed and added to your system PATH)