A7med-Ame3 commited on
Commit
f59698b
·
verified ·
1 Parent(s): 9813469

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +25 -16
requirements.txt CHANGED
@@ -1,23 +1,32 @@
1
- # ── Core ML stack ─────────────────────────────────────────────────────────────
2
- torch>=2.1.0
3
- torchvision>=0.16.0
 
 
 
 
 
 
 
 
 
 
 
4
  transformers>=4.45.0
5
  accelerate>=0.27.0
 
6
 
7
- # ── Qwen2-VL specific ─────────────────────────────────────────────────────────
8
- qwen-vl-utils>=0.0.8 # process_vision_info helper
9
 
10
- # ── Gradio web UI ──────────────────────────────────────────────────────────────
11
- gradio>=4.40.0
 
12
 
13
- # ── Computer vision ────────────────────────────────────────────────────────────
14
- opencv-python>=4.8.0
15
  Pillow>=10.0.0
16
-
17
- # ── TTS ────────────────────────────────────────────────────────────────────────
18
- pyttsx3>=2.90 # offline TTS (primary)
19
- gTTS>=2.5.0 # online TTS (fallback)
20
-
21
- # ── Utils ──────────────────────────────────────────────────────────────────────
22
  numpy>=1.24.0
23
- pytest>=7.4.0 # for running tests
 
 
 
1
+ # ══════════════════════════════════════════════════════════════════
2
+ # ClearPath — Hugging Face Space | requirements.txt
3
+ #
4
+ # Root cause fix:
5
+ # gradio 4.x used HfFolder from huggingface_hub, which was REMOVED
6
+ # in huggingface_hub>=0.23.0. Fix: upgrade to gradio 5.x which is
7
+ # fully compatible with modern huggingface_hub.
8
+ # ══════════════════════════════════════════════════════════════════
9
+
10
+ # ── Gradio ────────────────────────────────────────────────────────
11
+ gradio==5.9.1
12
+
13
+ # ── HuggingFace ecosystem ─────────────────────────────────────────
14
+ huggingface_hub>=0.27.0
15
  transformers>=4.45.0
16
  accelerate>=0.27.0
17
+ tokenizers>=0.20.0
18
 
19
+ # ── Qwen2-VL ─────────────────────────────────────────────────────
20
+ qwen-vl-utils>=0.0.8
21
 
22
+ # ── PyTorch (CPU avoids heavy GPU wheels on free-tier Spaces) ───
23
+ torch==2.2.2
24
+ torchvision==0.17.2
25
 
26
+ # ── Computer vision ───────────────────────────────────────────────
27
+ opencv-python-headless>=4.8.0
28
  Pillow>=10.0.0
 
 
 
 
 
 
29
  numpy>=1.24.0
30
+
31
+ # ── TTS ───────────────────────────────────────────────────────────
32
+ gTTS>=2.5.0