AIencoder commited on
Commit
8e908ed
·
verified ·
1 Parent(s): ee9724c

v5: pin pydantic<2.10 (Pydantic 2.10's additionalProperties: bool breaks gradio_client 1.3 schema walker)

Browse files
Files changed (1) hide show
  1. requirements.txt +10 -3
requirements.txt CHANGED
@@ -1,14 +1,21 @@
 
 
 
 
1
  gradio==4.44.1
 
 
 
2
  matplotlib>=3.7
3
  numpy>=1.24
4
  torch>=2.0
5
  pillow>=10.0
6
- # huggingface_hub <1.0 — Gradio 4.x imports HfFolder which was removed in 1.0.
 
7
  huggingface_hub>=0.24,<1.0
8
 
9
  # llama-cpp-python: prebuilt wheel from AIencoder/llama-cpp-wheels.
10
- # CPU-only, AVX2 + FMA + F16C the right baseline for HF Spaces' x86_64.
11
- # Avoids source-build, which is unreliable on Spaces.
12
  https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16%2Bbasic_avx2_fma_f16c-cp312-cp312-manylinux_2_31_x86_64.whl
13
 
14
  audioop-lts; python_version >= "3.13"
 
1
+ # Pin tested-known-good Gradio + gradio_client + Pydantic combo. Pydantic
2
+ # 2.10 changed schema generation to emit `additionalProperties: True/False`
3
+ # (bool) — gradio_client 1.3 / 1.4 raises `'bool' is not iterable` when
4
+ # walking that schema. <2.10 keeps the pre-change behaviour.
5
  gradio==4.44.1
6
+ gradio_client==1.3.0
7
+ pydantic>=2.0,<2.10
8
+
9
  matplotlib>=3.7
10
  numpy>=1.24
11
  torch>=2.0
12
  pillow>=10.0
13
+
14
+ # Gradio 4.x imports HfFolder which was removed in huggingface_hub 1.0.
15
  huggingface_hub>=0.24,<1.0
16
 
17
  # llama-cpp-python: prebuilt wheel from AIencoder/llama-cpp-wheels.
18
+ # CPU-only, AVX2 + FMA + F16C. Avoids HF-Spaces source-build failures.
 
19
  https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16%2Bbasic_avx2_fma_f16c-cp312-cp312-manylinux_2_31_x86_64.whl
20
 
21
  audioop-lts; python_version >= "3.13"