This app uses the wonderful Python UI Framework Streamlit and Cloudflare Workers AI.
Sign up for Cloudflare if you haven't yet already...its free and like c'mon. Head over to the Workers AI section in your dash. On the Overview page there is a button that says use the REST API, which this demo is doing. Get your values and copy .streamlit/secrets.toml.example to .streamlit/secrets.toml
cp .streamlit/secrets.toml.example .streamlit/secrets.tomlPut your CLOUDFLARE_ACCOUNT_ID and the api token you generated into CLOUDFLARE_API_TOKEN
python -m venv venv
source ./venv/bin/activate
python -m pip install -r requirements.txtpython -m streamlit run app.py