Joker Chatbot is an AI-powered conversational agent inspired by the character Joker from "The Dark Knight." It utilizes the ChatGPT API developed by OpenAI to provide engaging and interactive conversations.
- Interactive chat-based interface
- Utilizes OpenAI's ChatGPT API
- Displays conversation history with user and chatbot responses
To run the Chatbot locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Aravinda89/joker_chatbot.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your OpenAI API credentials:
- Create an account on the OpenAI platform (if you haven't already)
- Obtain an API key
- write API key inside
.env
file - API_KEY = sk-*********************
-
Run the Streamlit app:
streamlit run app.py
-
Access the chatbot interface in your web browser at
http://localhost:8501
.
Here's an example conversation with the Chatbot:
![Screenshot 2023-05-25 233648](https://private-user-images.githubusercontent.com/31471559/240967111-a007cf9d-65bd-4240-a297-ad3cf2d3d93c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1NTU4NDYsIm5iZiI6MTcxODU1NTU0NiwicGF0aCI6Ii8zMTQ3MTU1OS8yNDA5NjcxMTEtYTAwN2NmOWQtNjViZC00MjQwLWEyOTctYWQzY2YyZDNkOTNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE2VDE2MzIyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3Nzg2ZjdkZTNkNmE1YmE1ZjQ1YzFhMmRiZmM4YzBjNWI0MjVkNDhiMjE2NGFmNjRjNDhkMzMxMDE0OTUxMDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mgLRag1HbDO54BnSU-SnFH5-1gIeCOJGNK-dHLPKMf8)
Contributions to the Chatbot are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.