To install the project's dependencies, run this command:
pip install -r requirements.txt
Ensure you have valid API keys stored in ~/.streamlit/secrets.toml
(you only need them for the models you use):
OPENAI_API_KEY="sk-..."
ANTHROPIC_API_KEY="sk-ant-..."
CO_API_KEY="..."
Streamlit sets these as environment variables in streamlit run
The following command will run the app:
streamlit run Trilogue.py
The code in Trilogue.py
will be reloaded when you refresh the page.
Streamlit's reloading behavior can be unintuitive in the following ways:
- Other modules are not reloaded.
- Persistent objects created using the old classes, etc. will continue
using those classes. These will use old versions of methods and fail
isinstance
checks with the latest module's classes.
To avoid this, the application uses a single module.