Spaces:
Running on Zero
Running on Zero
A newer version of the Gradio SDK is available: 6.25.0
Quote / Tip of the Day Agent — cwait (Week 8)
A simple agent that fetches quotes from a public API, uses an LLM to pick one and rephrase it as a "tip of the day", and displays it in a Gradio UI.
What it does
- Fetch — Gets quotes from quotable.io (no API key).
- Pick — An LLM chooses the most inspiring quote and rewrites it as a short tip (1–2 sentences).
- Display — Gradio app with a Refresh button to get a new tip.
How to run
- Ensure
OPENAI_API_KEYis set (e.g. in a.envin the project root). - Open
cwait-igniters-week8.ipynband run all cells, or run from the week8 directory soagentscan be imported:cd week8 jupyter notebook community_contributions/cwait/cwait-igniters-week8.ipynb - Run the Gradio cell to launch the UI; click Refresh for a new tip.
Requirements
- Python with
requests,openai,gradio,python-dotenv - Course
week8agents on path (notebook sets this up when run fromcommunity_contributions/cwait)