/GDSE-Event-by-Team-1

Unleashing Creativity with OpenAI and Streamlit

Primary LanguagePython

EventName - Unleashing Creativity with OpenAI and Streamlit

Setup Python Environment

py -m venv venv
venv\Scripts\activate
python -m pip install --upgrade pip

Check if Python is installed

python --version

How to install Streamlit and OpenAI

pip install streamlit
pip install openai

How to run

streamlit run app.py


API key Hiding

Create a file called secrets.toml under .streamlit folder and add the following lines

openai_api_key = "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
calude_api_key = "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Creating requirements.txt

Reference

py -m pip install -r requirements.txt
pip3 freeze >requirements.txt