LonghaoWang's picture
Unit 4 tool agent
823d419 verified
|
Raw History Blame Contribute Delete
1.09 kB

A newer version of the Gradio SDK is available: 6.30.0

Upgrade
metadata
title: Final Assignment Template
emoji: 🕵️‍♂️
colorFrom: indigo
colorTo: indigo
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
hf_oauth: true
hf_oauth_expiration_minutes: 480

Unit 4 — GAIA Level-1 Tool Agent

Deterministic multi-tool agent for the Hugging Face Agents Course Unit 4 final assignment.

Tools

  • Attachment download from the scoring API (with bundled files/ fallback)
  • Excel food-sales aggregation (pandas / openpyxl)
  • Python code execution for .py attachments
  • Reverse-text / algebra commutativity / botanical vegetable filter
  • Wikipedia + web fetch for factual questions
  • Audio: transcript sidecars, optional Hugging Face ASR when HF_TOKEN is set

Run locally

pip install -r requirements.txt
python run_local.py   # writes answers.json (does not submit)
python app.py         # Gradio UI

Submit

Use the Space UI Run Evaluation & Submit All Answers while logged in as LonghaoWang. Do not hardcode a naked 20-item answer key in app.py; answers are produced by tool routing in agent.py.