Spaces:
Sleeping
Sleeping
v7: huggingface_hub<1.0 (Gradio 5.5 oauth still imports HfFolder)
Browse files- requirements.txt +7 -7
requirements.txt
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
-
# Gradio 5
|
| 2 |
-
# 4.44.1 + new Starlette (0.40+) is broken: 4.x calls TemplateResponse with
|
| 3 |
-
# the pre-0.40 positional-args signature, so jinja2's cache lookup gets a
|
| 4 |
-
# dict as a key → TypeError. Gradio 5 uses the new Starlette API.
|
| 5 |
gradio>=5.5,<6.0
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
matplotlib>=3.7
|
| 8 |
numpy>=1.24
|
| 9 |
torch>=2.0
|
| 10 |
pillow>=10.0
|
| 11 |
|
| 12 |
-
# huggingface_hub stays <2.0 (pinning broad — Gradio 5 handles 1.x+).
|
| 13 |
-
huggingface_hub>=0.24,<2.0
|
| 14 |
-
|
| 15 |
# Prebuilt llama-cpp-python wheel from AIencoder/llama-cpp-wheels.
|
| 16 |
# CPU-only, AVX2 + FMA + F16C — works on every HF Space x86_64 host.
|
| 17 |
https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16%2Bbasic_avx2_fma_f16c-cp312-cp312-manylinux_2_31_x86_64.whl
|
|
|
|
| 1 |
+
# Gradio 5 (avoids 4.x's Starlette template signature breakage).
|
|
|
|
|
|
|
|
|
|
| 2 |
gradio>=5.5,<6.0
|
| 3 |
|
| 4 |
+
# CRITICAL: gradio 5.5's oauth.py still does `from huggingface_hub import
|
| 5 |
+
# HfFolder` — HfFolder was removed in huggingface_hub 1.0. Pin <1.0.
|
| 6 |
+
# (Newer gradio 5.20+ uses get_token instead, but the 5.5 LTS line we use
|
| 7 |
+
# is more conservative and well-tested on Spaces.)
|
| 8 |
+
huggingface_hub>=0.24,<1.0
|
| 9 |
+
|
| 10 |
matplotlib>=3.7
|
| 11 |
numpy>=1.24
|
| 12 |
torch>=2.0
|
| 13 |
pillow>=10.0
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
# Prebuilt llama-cpp-python wheel from AIencoder/llama-cpp-wheels.
|
| 16 |
# CPU-only, AVX2 + FMA + F16C — works on every HF Space x86_64 host.
|
| 17 |
https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16%2Bbasic_avx2_fma_f16c-cp312-cp312-manylinux_2_31_x86_64.whl
|