A7med-Ame3 commited on
Commit
74bf397
·
verified ·
1 Parent(s): 4e350ba

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +5 -14
requirements.txt CHANGED
@@ -1,35 +1,26 @@
1
  # ══════════════════════════════════════════════════════════════════
2
  # ClearPath — Hugging Face Space | requirements.txt
3
- #
4
- # Fix summary:
5
- # - torch 2.2.2 was rejected by new transformers (needs >=2.4)
6
- # → upgraded to torch 2.4.1 (CPU, stable on HF free tier)
7
- # - numpy 2.x broke torch binary compiled against numpy 1.x
8
- # → pinned numpy<2
9
- # - transformers pinned to version that works with Qwen2-VL + torch 2.4
10
  # ══════════════════════════════════════════════════════════════════
11
 
12
  # ── Gradio ────────────────────────────────────────────────────────
13
  gradio==5.9.1
14
 
15
- # ── PyTorch CPU must come before transformers ───────────────────
16
  --extra-index-url https://download.pytorch.org/whl/cpu
17
  torch==2.4.1+cpu
18
  torchvision==0.19.1+cpu
19
 
20
- # ── NumPy must be <2 to match torch 2.4 binary ─────────────────
21
  numpy<2
22
 
23
- # ── HuggingFace ecosystem ─────────────────────────────────────────
24
  huggingface_hub>=0.27.0
25
  transformers==4.47.1
26
  accelerate>=0.27.0
27
  tokenizers>=0.20.0
28
 
29
- # ── Qwen2-VL ─────────────────────────────────────────────────────
30
- qwen-vl-utils>=0.0.8
31
-
32
- # ── Computer vision ───────────────────────────────────────────────
33
  opencv-python-headless>=4.8.0
34
  Pillow>=10.0.0
35
 
 
1
  # ══════════════════════════════════════════════════════════════════
2
  # ClearPath — Hugging Face Space | requirements.txt
3
+ # Fully self-contained: no external API keys required.
 
 
 
 
 
 
4
  # ══════════════════════════════════════════════════════════════════
5
 
6
  # ── Gradio ────────────────────────────────────────────────────────
7
  gradio==5.9.1
8
 
9
+ # ── PyTorch CPU wheel ─────────────────────────────────────────────
10
  --extra-index-url https://download.pytorch.org/whl/cpu
11
  torch==2.4.1+cpu
12
  torchvision==0.19.1+cpu
13
 
14
+ # ── NumPy pinned <2 (torch 2.4 binary requires numpy 1.x) ────────
15
  numpy<2
16
 
17
+ # ── HuggingFace ───────────────────────────────────────────────────
18
  huggingface_hub>=0.27.0
19
  transformers==4.47.1
20
  accelerate>=0.27.0
21
  tokenizers>=0.20.0
22
 
23
+ # ── Vision & video ────────────────────────────────────────────────
 
 
 
24
  opencv-python-headless>=4.8.0
25
  Pillow>=10.0.0
26