atharvgaur18 commited on
Commit
fcedda7
·
verified ·
1 Parent(s): 98d9291

pin fastapi/pydantic for gradio 4.44.1

Browse files
Files changed (1) hide show
  1. requirements.txt +4 -1
requirements.txt CHANGED
@@ -1,7 +1,10 @@
1
  gradio==4.44.1
2
  spaces
3
- # gradio 4.44.1 imports huggingface_hub.HfFolder, removed in huggingface_hub 1.0; transformers 5.x requires hub >= 1.0
 
4
  huggingface_hub>=0.34,<1.0
 
 
5
  transformers==4.57.1
6
  torch
7
  accelerate
 
1
  gradio==4.44.1
2
  spaces
3
+ # gradio 4.44.1 era stack: huggingface_hub 1.0 removed HfFolder; newer starlette changed TemplateResponse
4
+ # ("unhashable type: 'dict'"); pydantic >= 2.11 breaks gradio 4.x's JSON-schema handling
5
  huggingface_hub>=0.34,<1.0
6
+ fastapi==0.112.2
7
+ pydantic==2.10.6
8
  transformers==4.57.1
9
  torch
10
  accelerate