Claude commited on
Commit
2fb5b49
·
unverified ·
1 Parent(s): 445d395

Pin HF Space to Python 3.12 + cap huggingface-hub<0.30

Browse files

Gradio 4.44's oauth module imports `HfFolder`, which was removed in
huggingface-hub 0.30 — the Space's default image installs 0.30+, so
the app crashed at startup. Cap hf-hub for now.

Also pin the Space runtime to Python 3.12 so we stop chasing 3.13
regressions (already hit audioop removal; HfFolder was next; the old
gradio dep graph is riddled with them).

Files changed (2) hide show
  1. README.md +1 -0
  2. requirements.txt +4 -0
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
  sdk_version: 4.44.0
 
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
5
  colorTo: purple
6
  sdk: gradio
7
  sdk_version: 4.44.0
8
+ python_version: "3.12"
9
  app_file: app.py
10
  pinned: false
11
  license: mit
requirements.txt CHANGED
@@ -33,4 +33,8 @@ pymatching>=2.2
33
  # on 3.13+ so the app starts. Harmless on 3.10–3.12.
34
  audioop-lts>=0.2.1; python_version >= "3.13"
35
 
 
 
 
 
36
  # CUDA-Q is installed separately on the Space (see README).
 
33
  # on 3.13+ so the app starts. Harmless on 3.10–3.12.
34
  audioop-lts>=0.2.1; python_version >= "3.13"
35
 
36
+ # Gradio 4.44's oauth module imports `HfFolder`, which was removed in
37
+ # huggingface-hub 0.30. Pin below that until we can upgrade Gradio.
38
+ huggingface-hub>=0.23,<0.30
39
+
40
  # CUDA-Q is installed separately on the Space (see README).