This project is a simple web app that uses the GPT-3 model from OpenAI to simulate a conversation with a chatbot. It is built using the Gradio library, which allows for easy deployment of machine learning models as web applications.
- Clone the repository and navigate to the project directory.
- Create a virtual environment and activate it.
- Install the dependencies by running
pip install -r requirements.txt
. - Replace
YOUR_API_KEY
with your OpenAI API key in theDockerfile
. - Build the Docker image by running
docker build -t chat-gpt-app .
. - Run the container by running
docker run -p 7860:7860 chat-gpt-app
. - Open a web browser and navigate to
http://0.0.0.0:7860/
to access the application.
The application will start with a prompt asking the user to start a conversation with the AI. The user can type in a message and click the "SEND" button to receive a response from the AI. The conversation history will be displayed on the page, and the user can continue the conversation by typing in a new message and clicking the "SEND" button again.
This project is for educational purpose only and should not be used for any commercial or production use case.
Also, The API Key that you are using should be kept private and should not be shared with anyone.