Spaces:
Runtime error
Runtime error
Update requirements.txt
#9
by MDT-ai2025 - opened
No description provided.
A note on the two open requirements PRs for this Space, since they disagree and only one of them can install:
The Space is down at import torch (ModuleNotFoundError: No module named 'torch' at app.py line 14) — requirements.txt never declares torch, and the current Space environment does not provide it.
- PR #9 adds
torch==2.8.0withtorchvision==0.14.0. That pair cannot resolve: torchvision 0.14.0's wheel metadata declaresRequires-Dist: torch (==1.13.0), so pip will refuse the combination. - PR #8 adds
torch==1.13.0withtorchvision==0.14.0— a consistent pair by the same metadata check, but a 2022 torch for a demo whose README targets gradio 5.1.0 and the current co-tracker code.
The consistent current pairing is torch==2.8.0 with torchvision==0.23.0 (torchvision 0.23.0's metadata declares Requires-Dist: torch (==2.8.0); both metadata reads are from the published wheels). Updating PR #9's torchvision line to 0.23.0 makes it the complete fix: right torch, matching torchvision, nothing else in the file touched.