Spaces:
Sleeping
Sleeping
Commit ·
e8d41e6
1
Parent(s): 945c762
fix: Pin pydantic <2.11.0 to fix JSON schema bug
Browse filesRoot cause: Pydantic 2.11+ has incompatibility with gradio_client
Solution: Pin pydantic>=2.0.0,<2.11.0
Reference: https://github.com/gradio-app/gradio/issues/10662
- README.md +1 -1
- requirements.txt +2 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🦚
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.
|
| 8 |
python_version: 3.11
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
python_version: 3.11
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
requirements.txt
CHANGED
|
@@ -4,7 +4,8 @@ transformers>=4.36.0
|
|
| 4 |
peft>=0.7.0
|
| 5 |
accelerate>=0.25.0
|
| 6 |
bitsandbytes>=0.41.0
|
| 7 |
-
gradio==4.
|
|
|
|
| 8 |
huggingface_hub>=0.20.0,<0.27.0
|
| 9 |
scipy
|
| 10 |
sentencepiece
|
|
|
|
| 4 |
peft>=0.7.0
|
| 5 |
accelerate>=0.25.0
|
| 6 |
bitsandbytes>=0.41.0
|
| 7 |
+
gradio==4.44.0
|
| 8 |
+
pydantic>=2.0.0,<2.11.0
|
| 9 |
huggingface_hub>=0.20.0,<0.27.0
|
| 10 |
scipy
|
| 11 |
sentencepiece
|