Spaces:
Sleeping
Fix runtime: upgrade to actively-maintained gradio 6.26.0 instead of patching legacy 4.44.1 stack
Browse filesPinning individual transitive deps (huggingface_hub, pydantic) against
gradio==4.44.1 turned into whack-a-mole: each fix surfaced a new
incompatibility with today's PyPI-latest packages (audioop/python 3.13,
HfFolder removal, pydantic JSON-schema regression, and finally a
Jinja2/TemplateResponse "unhashable dict" crash in gradio_client's
bundled routes on the resolved starlette version). Verified locally
end-to-end (real app.py, real YOLO + ResNet50 weights, real sample
image via gradio_client) that gradio==6.26.0 resolves a clean,
mutually-compatible dependency set with no manual pins needed for
fastapi/starlette/pydantic/huggingface_hub. sdk_version bumped to match.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TjcgYCZjyAPxP1vq8X9VTn
- README.md +1 -1
- requirements.txt +1 -3
|
@@ -4,7 +4,7 @@ emoji: "📣"
|
|
| 4 |
colorFrom: "indigo"
|
| 5 |
colorTo: "pink"
|
| 6 |
sdk: "gradio"
|
| 7 |
-
sdk_version: "
|
| 8 |
python_version: "3.11"
|
| 9 |
app_file: "app.py"
|
| 10 |
pinned: false
|
|
|
|
| 4 |
colorFrom: "indigo"
|
| 5 |
colorTo: "pink"
|
| 6 |
sdk: "gradio"
|
| 7 |
+
sdk_version: "6.26.0"
|
| 8 |
python_version: "3.11"
|
| 9 |
app_file: "app.py"
|
| 10 |
pinned: false
|
|
@@ -1,8 +1,6 @@
|
|
| 1 |
torch
|
| 2 |
torchvision
|
| 3 |
ultralytics
|
| 4 |
-
gradio==
|
| 5 |
-
huggingface_hub==0.25.2
|
| 6 |
-
pydantic==2.9.2
|
| 7 |
pandas
|
| 8 |
Pillow
|
|
|
|
| 1 |
torch
|
| 2 |
torchvision
|
| 3 |
ultralytics
|
| 4 |
+
gradio==6.26.0
|
|
|
|
|
|
|
| 5 |
pandas
|
| 6 |
Pillow
|