Upload requirements-demo.txt with huggingface_hub
Browse files- requirements-demo.txt +21 -0
requirements-demo.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dependencies for demo_app.py. Standalone (does not extend requirements.txt)
|
| 2 |
+
# because gradio==4.44.1 needs an older pillow/pydantic/starlette/fastapi
|
| 3 |
+
# stack than the core requirements.txt allows -- newer versions of those
|
| 4 |
+
# (installed by an unpinned `pip install gradio`) hit real bugs: gradio
|
| 5 |
+
# also needs huggingface_hub>=1.0, which conflicts with transformers==4.53.0
|
| 6 |
+
# (the version needed to load this checkpoint's state dict -- see
|
| 7 |
+
# requirements.txt), and newer pydantic/starlette combined with gradio
|
| 8 |
+
# 4.44.1 hit upstream schema/template-caching bugs that break the page
|
| 9 |
+
# entirely. This exact combination was verified working end-to-end
|
| 10 |
+
# (server boots, page loads, /predict returns correct results).
|
| 11 |
+
torch==2.7.1
|
| 12 |
+
transformers==4.53.0
|
| 13 |
+
huggingface_hub==0.33.2
|
| 14 |
+
opencv-python-headless==4.12.0.88
|
| 15 |
+
gradio==4.44.1
|
| 16 |
+
gradio_client==1.3.0
|
| 17 |
+
pydantic==2.9.2
|
| 18 |
+
starlette==0.37.2
|
| 19 |
+
fastapi==0.115.0
|
| 20 |
+
jinja2==3.1.4
|
| 21 |
+
anyio==4.4.0
|