This guide will help you set up and run the Streamlit app.
- Python 3.10+ installed on your system
requirements.txt
andapp.py
present in the project directory.streamlit/
directory withsecrets.toml
for storing sensitive keys
-
Create and Activate Virtual Environment
Create a virtual environment using Python 3.10:
python3.10 -m venv venv
Activate the virtual environment:
-
macOS/Linux:
source venv/bin/activate
-
Windows:
venv\Scripts\activate
-
-
Install Dependencies
With the virtual environment activated, install dependencies from
requirements.txt
:pip install -r requirements.txt
-
Add Secrets
In the root directory, create a
secrets.toml
file to store your API keys. For example:[general] OPENAI_API_KEY = "your-openai-api-key"
-
Run the App
Start the Streamlit app:
streamlit run app.py
When you’re finished, deactivate the virtual environment:
deactivate