A custom ChatGPT-like web application using OpenAI API, Python, and Streamlit.
This project is a simple ChatGPT-like application built with Streamlit and OpenAI's API. It provides an interactive chat interface where users can enter prompts and receive AI-generated responses using the gpt-4o
model.
You can access the deployed custom ChatGPT-like application here, using your own OpenAI API key.
You might also like to read the tutorial-style step-by-step guide I wrote, on how I built this custom ChatGPT Plus-like application.
- Interactive chat interface powered by Streamlit.
- Uses OpenAI's GPT-4o model for responses.
- Secure API key input for accessing OpenAI API.
- Maintains chat history within a session.
To run this project, ensure you have:
- Python 3.8 or higher installed
- An OpenAI API key (You can obtain an API key by signing up at OpenAI's platform and navigating to the API Keys section.)
Clone the repository and install the required dependencies:
pip install -r requirements.txt
Run the Streamlit application with the following command:
streamlit run app.py
Once the app is running:
- Enter your OpenAI API key when prompted.
- Type your message in the chat input field.
- Receive AI-generated responses in real time.
README.md
: Documentation for the project.app.py
: Main script containing the Streamlit chat application.requirements.txt
: List of dependencies required for the project.