Commit Β·
a53f2b4
1
Parent(s): de643a2
fix: cap huggingface-hub <0.30 and diffusers <0.35 so gradio 4.44 oauth works
Browse filesGradio 4.44.0 (the last 4.x β 5.x broke ImageEditor) imports HfFolder
from huggingface_hub. HfFolder was removed in newer hub versions, so
the app crashed on import.
The compatibility window:
- huggingface-hub >=0.27.0 (diffusers 0.34 floor) <0.30.0 (HfFolder still present)
- diffusers >=0.34.0 (WanVACEPipeline floor) <0.35.0 (so its hub floor stays at 0.27)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- requirements.txt +9 -2
requirements.txt
CHANGED
|
@@ -8,7 +8,12 @@
|
|
| 8 |
gradio>=4.44.0,<5.0.0
|
| 9 |
fastapi==0.112.2
|
| 10 |
starlette==0.37.2
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
pydantic<2.9.0
|
| 13 |
numpy>=1.24.0,<2.0.0
|
| 14 |
Pillow>=9.5.0,<10.0.0
|
|
@@ -20,7 +25,9 @@ simple-lama-inpainting>=0.1.2
|
|
| 20 |
# ββ Quality mode (VACE-14B) βββββββββββββββββββββββββββββββββββββββββββββββ
|
| 21 |
# torch / torchvision are pre-installed on ZeroGPU; do not pin here.
|
| 22 |
# diffusers must be >=0.34.0 for WanVACEPipeline (merged in PR #11582).
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
transformers>=4.44.0
|
| 25 |
accelerate>=0.33.0
|
| 26 |
sentencepiece>=0.1.99
|
|
|
|
| 8 |
gradio>=4.44.0,<5.0.0
|
| 9 |
fastapi==0.112.2
|
| 10 |
starlette==0.37.2
|
| 11 |
+
# Window:
|
| 12 |
+
# - >=0.27.0 β diffusers 0.34 floor
|
| 13 |
+
# - <0.30.0 β keep HfFolder importable for gradio 4.44.0's oauth.py
|
| 14 |
+
# (gradio 5 dropped HfFolder usage but its ImageEditor format is
|
| 15 |
+
# incompatible with _get_mask_from_editor, so we stay on 4.x)
|
| 16 |
+
huggingface-hub>=0.27.0,<0.30.0
|
| 17 |
pydantic<2.9.0
|
| 18 |
numpy>=1.24.0,<2.0.0
|
| 19 |
Pillow>=9.5.0,<10.0.0
|
|
|
|
| 25 |
# ββ Quality mode (VACE-14B) βββββββββββββββββββββββββββββββββββββββββββββββ
|
| 26 |
# torch / torchvision are pre-installed on ZeroGPU; do not pin here.
|
| 27 |
# diffusers must be >=0.34.0 for WanVACEPipeline (merged in PR #11582).
|
| 28 |
+
# Capped at <0.35: 0.35+ requires huggingface-hub>=0.34.0, which is past
|
| 29 |
+
# the HfFolder removal point and breaks gradio 4.44.0's oauth import.
|
| 30 |
+
diffusers>=0.34.0,<0.35.0
|
| 31 |
transformers>=4.44.0
|
| 32 |
accelerate>=0.33.0
|
| 33 |
sentencepiece>=0.1.99
|