99. Code samples for Streamlit
This app includes code samples for Streamlit. You can run the app and select the sample you want to run from the sidebar.
Prerequisites
- Python 3.10 or later
- Azure OpenAI Service
Usage
- Get Azure OpenAI Service API key
- Get Azure AI Search API key
- Copy .env.template to
.env
in the same directory - Set credentials in
.env
- Run main.py
# Create a virtual environment
$ python -m venv .venv
# Activate the virtual environment
$ source .venv/bin/activate
# Install dependencies
$ pip install -r requirements.txt
# Run the script
$ python -m streamlit run apps/99_streamlit_examples/main.py
Example
Access to http://localhost:8501 and select the sample you want to run from the sidebar.