Maximilian Schuh commited on
Commit
b57bea1
·
1 Parent(s): 9e81834

Pin huggingface_hub version to <1.0.0 to avoid import errors with Gradio OAuth

Browse files
Files changed (2) hide show
  1. README.md +1 -0
  2. requirements.txt +1 -1
README.md CHANGED
@@ -43,3 +43,4 @@ Weights:
43
  - To avoid spending GPU time on downloads, click **Download / refresh models** once after each deployment to prefetch weights on CPU.
44
  - If inference ever needs more time, adjust the `duration` parameter in `app.py`, but keep it as low as practical to respect ZeroGPU queue fairness.
45
  - A lightweight, bundled `twinbooster` shim (version `0.3.1`) is shipped in `./twinbooster/` to avoid PyPI's Python 3.8 restriction on the official wheels. No external install is required; the public API used by the app is preserved.
 
 
43
  - To avoid spending GPU time on downloads, click **Download / refresh models** once after each deployment to prefetch weights on CPU.
44
  - If inference ever needs more time, adjust the `duration` parameter in `app.py`, but keep it as low as practical to respect ZeroGPU queue fairness.
45
  - A lightweight, bundled `twinbooster` shim (version `0.3.1`) is shipped in `./twinbooster/` to avoid PyPI's Python 3.8 restriction on the official wheels. No external install is required; the public API used by the app is preserved.
46
+ - `huggingface_hub` is pinned to `<1.0.0` because Gradio OAuth still imports `HfFolder`, which was removed in 1.x; keep this constraint to avoid startup import errors on ZeroGPU.
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  gradio==4.44.1
2
- huggingface_hub>=0.22.0
3
  pandas==2.0.3
4
  plotly>=5.22.0
5
  openpyxl>=3.1.2
 
1
  gradio==4.44.1
2
+ huggingface_hub>=0.22.0,<1.0.0 # Gradio OAuth expects HfFolder, removed in 1.x
3
  pandas==2.0.3
4
  plotly>=5.22.0
5
  openpyxl>=3.1.2