github-actions[bot] commited on
Commit
1afea71
·
1 Parent(s): bc2002f

Sync from GitHub: bab52421d4d097fbd4702ea97a7d5e7bb5e38307

Browse files
Files changed (1) hide show
  1. requirements.txt +8 -6
requirements.txt CHANGED
@@ -1,15 +1,17 @@
1
  # Hugging Face Spaces requirements
2
- # Updated 2025-11-27: Force rebuild with Gradio 4.44.1+
3
  torch>=2.0.0
4
  torchvision>=0.15.0
5
  opencv-python>=4.5.0
6
  numpy>=1.20.0
7
  Pillow>=9.0.0
8
 
9
- # Gradio demo (pin to exact 4.44.1 to avoid JSON schema bug in 4.44.0)
10
- gradio==4.44.1
 
 
 
 
11
  matplotlib>=3.5.0
12
 
13
- # Model downloads from HuggingFace
14
- # Pin to exact version for stability
15
- huggingface-hub==0.26.5
 
1
  # Hugging Face Spaces requirements
 
2
  torch>=2.0.0
3
  torchvision>=0.15.0
4
  opencv-python>=4.5.0
5
  numpy>=1.20.0
6
  Pillow>=9.0.0
7
 
8
+ # Fix for JSON schema bug (workaround)
9
+ # HF Spaces backend has Gradio 5/FastAPI components that conflict with newer pydantic
10
+ pydantic==2.10.6
11
+
12
+ # Gradio demo
13
+ gradio>=4.44.1,<5.0.0
14
  matplotlib>=3.5.0
15
 
16
+ # Model downloads
17
+ huggingface-hub>=0.20.0,<1.0.0