A conversational AI chatbot built with Python, Streamlit, and OpenAI's GPT-3.5. Supports multi-turn conversations with a clean, minimal chat UI.
- 🤖 Powered by OpenAI GPT-3.5-turbo
- 💬 Multi-turn conversation memory
- ⚡ Real-time streaming responses
- 🖥️ Clean Streamlit web interface
- 🔑 Secure API key handling via environment variables
- Clone the repo
git clone https://github.com/SimranSabat/chatbot.git
cd chatbot- Install dependencies
pip install -r requirements.txt- Add your OpenAI API key
Create a
.streamlit/secrets.tomlfile:
OPENAI_API_KEY = "your-api-key-here"- Run the app
streamlit run streamlit_app.pychatbot/
├── streamlit_app.py # Main application
├── requirements.txt # Dependencies
└── .streamlit/
└── secrets.toml # API keys (not committed)
Never commit your API key. Use .streamlit/secrets.toml locally
and Streamlit Cloud's secrets manager for deployment.
Made with ❤️ by Simran Sabat