8. Call Azure OpenAI Batch API with Streamlit
This app demonstrates how to call Azure OpenAI Batch API with Streamlit.
Prerequisites
- Python 3.10 or later
- Azure OpenAI Service (Global batch deployment)
Usage
- Get Azure OpenAI Service 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/8_streamlit_azure_openai_batch/main.py