Spaces:
Sleeping

xzhou10 commited on
Commit
147598c
·
1 Parent(s): 6bc74a6

fix: pin huggingface_hub<1.0 (gradio 4.44 imports removed HfFolder)

Browse files

huggingface_hub 1.x removed HfFolder which gradio 4.x oauth module
imports unconditionally. Pin hub to 0.x series until we upgrade gradio
to >=5 (which would also let us drop the python_version: 3.11 pin
since gradio 5+ dropped pydub).

Files changed (1) hide show
  1. requirements.txt +3 -1
requirements.txt CHANGED
@@ -1,5 +1,7 @@
1
  gradio==4.44.0
2
  pandas>=2.1
3
- huggingface_hub>=0.24
 
 
4
  # python_version: "3.11" in README.md frontmatter ensures the runtime ships
5
  # the stdlib audioop module that gradio<5 / pydub imports. No extra pin needed.
 
1
  gradio==4.44.0
2
  pandas>=2.1
3
+ # huggingface_hub 1.x removed HfFolder which gradio 4.x still imports;
4
+ # pin to the 0.x series that gradio 4.44 was built against.
5
+ huggingface_hub>=0.24,<1.0
6
  # python_version: "3.11" in README.md frontmatter ensures the runtime ships
7
  # the stdlib audioop module that gradio<5 / pydub imports. No extra pin needed.