We need these packages:
pip3 install streamlit
pip3 install streamlit-chat
pip3 install streamlit-extras
pip3 install pandas
pip3 install plotly
pip3 install --upgrade openai
pip3 install cohere
You can install all of them using pip install -r requirements.txt
.
From the root folder run:
streamlit run Home.py
Secrets are the API keys needed to access the LLM APIs (docs). To use them locally, create a .streamlit/secrets.toml
file under the project root and add the following contents:
# Everything in this section will be available as an environment variable
# Use thse secret keys with e.g. st.secrets["OPEN_AI_KEY"]
COHERE_KEY = "YOUR KEY GOES HERE"
OPEN_AI_KEY = "YOUR KEY GOES HERE"
# More keys to deal with rate limits
OPEN_AI_KEY2 = "YOUR KEY GOES HERE"
OPEN_AI_KEY3 = "YOUR KEY GOES HERE"
OPEN_AI_KEY4 = "YOUR KEY GOES HERE"
When hosting on the Streamlit community platform, secrets can be added manually.