JangTaeng commited on
Commit
f1ca565
·
verified ·
1 Parent(s): 22e13b7

Upload requirements.txt

Browse files
Files changed (1) hide show
  1. 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
- # Pin huggingface_hub below 1.0 because Gradio 4.44 still imports the
10
- # `HfFolder` class which was removed in huggingface_hub v1.0.0 (Nov 2025).
11
- # 0.34.3 is the version Facebook's EdgeTAM Space verified as working.
 
 
 
 
 
 
 
 
 
 
 
 
12
  huggingface_hub==0.34.3
13
 
14
- # Backport of the stdlib `audioop` module that was removed in Python 3.13.
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"