Fix broken Space: Update dependencies and Gradio 4 compatibility

#257
by akseljoonas HF Staff - opened

Summary

This PR fixes the broken Space by addressing multiple critical issues.

Issues Fixed

1. requirements.txt - Broken PyTorch URLs

The original requirements used hardcoded Python 3.8-specific wheel URLs from April 2023 that are no longer available:

  • pytorch_triton-2.1.0+46672772b4-cp38-cp38-linux_x86_64.whl โ†’ 404 Not Found
  • torch-2.1.0.dev20230413+cu117-cp38-cp38-linux_x86_64.whl โ†’ 404 Not Found

Fix: Replaced with standard package names that pip can resolve automatically.

2. README.md - Outdated SDK version

  • Changed sdk_version: 3.27.0 โ†’ sdk_version: 5.29.0
  • Changed python_version: 3.8.15 โ†’ python_version: 3.10

3. app.py - Gradio 4+ API compatibility

  • Changed _js=share_js โ†’ js=share_js (Gradio 4+ renamed this parameter)

Changes

  • requirements.txt: Use standard PyTorch packages instead of broken URLs
  • README.md: Update SDK and Python versions
  • app.py: Fix deprecated _js parameter to js
akseljoonas changed pull request status to open
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment