Fix GAIA attachment downloads

#2
by John6666 - opened

Summary

The current GAIA dataset provides attachment file_path values as repository-relative paths, but the Space currently checks them directly as local filesystem paths.

This change uses hf_hub_download() to resolve repository-relative attachment paths to files in the local Hugging Face cache. Existing absolute local paths continue to use the previous behavior.

Validation

Tested on a private duplicate of the current Space:

  • The application loaded all 20 questions successfully.
  • All 5 referenced attachments were downloaded and mapped.
  • /files/{task_id} returned HTTP 200 for:
    • PNG
    • MP3 (2 files)
    • Python
    • XLSX

The change is intentionally limited to attachment path resolution; unrelated loading and API behavior are unchanged.

Related reports

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment