Upload requirements.txt
Browse files- requirements.txt +16 -5
requirements.txt
CHANGED
|
@@ -6,12 +6,23 @@ accelerate>=0.27.0
|
|
| 6 |
evaluate>=0.4.0
|
| 7 |
scikit-learn>=1.0.0
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
#
|
| 11 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
huggingface_hub==0.34.3
|
| 13 |
|
| 14 |
-
# Backport of the stdlib `audioop` module
|
| 15 |
-
# Needed because Gradio 4.44's `pydub` dependency still imports it.
|
| 16 |
# Only installed when the runtime Python is 3.13 or newer.
|
| 17 |
audioop-lts; python_version >= "3.13"
|
|
|
|
| 6 |
evaluate>=0.4.0
|
| 7 |
scikit-learn>=1.0.0
|
| 8 |
|
| 9 |
+
# ---------------------------------------------------------------------------
|
| 10 |
+
# Compatibility pins for Gradio 4.44 (October 2024) running in 2026.
|
| 11 |
+
# Gradio 4.44 has not been updated to track these upstream API breakages,
|
| 12 |
+
# so we have to pin the transitive deps ourselves.
|
| 13 |
+
# ---------------------------------------------------------------------------
|
| 14 |
+
|
| 15 |
+
# Starlette 1.0 (March 2026) removed the deprecated TemplateResponse(name, ...)
|
| 16 |
+
# signature that Gradio 4.44 still uses. Without this pin, every HTTP request
|
| 17 |
+
# crashes with "TypeError: unhashable type: 'dict'" inside Jinja2's cache.
|
| 18 |
+
starlette<1.0
|
| 19 |
+
fastapi<0.116 # newer FastAPI requires starlette>=1.0; pin together.
|
| 20 |
+
|
| 21 |
+
# huggingface_hub 1.0 (Nov 2025) removed the deprecated HfFolder class that
|
| 22 |
+
# Gradio 4.44 still imports. 0.34.3 is the version Facebook's EdgeTAM Space
|
| 23 |
+
# verified as working.
|
| 24 |
huggingface_hub==0.34.3
|
| 25 |
|
| 26 |
+
# Backport of the stdlib `audioop` module removed in Python 3.13.
|
|
|
|
| 27 |
# Only installed when the runtime Python is 3.13 or newer.
|
| 28 |
audioop-lts; python_version >= "3.13"
|