Spaces:
Build error
Build error
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 Foundtorch-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 URLsREADME.md: Update SDK and Python versionsapp.py: Fix deprecated_jsparameter tojs
akseljoonas changed pull request status to
open