This is a sample Streamlit application that demonstrates how to use Streamlit as a UI with OpenAI's Chat API.
- Clone the repository
git clone https://github.com/joeychrys/streamlit-chatGPT.git
- Create a
.env
file based on the.env.example
file inside thesrc
directory and add yourOPENAI_API_KEY
OPENAI_API_KEY=yourapikey
- Create and activate a new virtual environment
python -m venv env
source env/bin/activate
- Move to project directory
cd streamlit-chatGPT
- Install the required packages
pip install -r requirements.txt
- Run the Streamlit application
streamlit run src/main.py
Once the application is running, you can interact with it by following the on-screen instructions at http://localhost:8501
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License