bithal26 commited on
Commit
845ba84
Β·
verified Β·
1 Parent(s): 7d1e38a

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +32 -4
requirements.txt CHANGED
@@ -1,4 +1,32 @@
1
- gradio
2
- torch
3
- torchvision
4
- timm
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ──────────────────────────────────────────────────────────────────────────────
2
+ # VERIDEX β€” Worker Space requirements.txt
3
+ #
4
+ # PINNING RULES FOR HF SPACES
5
+ # ────────────────────────────
6
+ # 1. NEVER pin gradio β€” HF force-installs gradio==6.x in [base 6/7].
7
+ # Any pin causes a ResolutionImpossible error β†’ exit code 1.
8
+ #
9
+ # 2. NEVER hard-pin torch/torchvision to a specific patch version.
10
+ # The HF base image ships a pre-built torch; an exact pin that doesn't
11
+ # match the available wheel causes "No matching distribution found".
12
+ # Use a floor (>=) so pip can pick the pre-installed wheel.
13
+ #
14
+ # 3. NEVER pin timm to 0.9.x β€” timm 1.x removed the direct
15
+ # timm.models.efficientnet.tf_efficientnet_b7_ns import path.
16
+ # Our app.py already has a try/except fallback, but a hard pin
17
+ # to 0.9.x will conflict with timm 1.x that Gradio 6 may pull in.
18
+ # Use a floor instead; the fallback import handles both versions.
19
+ #
20
+ # 4. numpy: Gradio 6 requires numpy>=1.0,<3.0. numpy 1.26.x is fine but
21
+ # do not hard-pin it β€” let pip choose within that window.
22
+ # ──────────────────────────────────────────────────────────────────────────────
23
+
24
+ # Deep-learning stack (floor-only β€” let HF pick the compatible wheel)
25
+ torch>=2.1.0
26
+ torchvision>=0.16.0
27
+
28
+ # Model architecture
29
+ timm>=0.9.16
30
+
31
+ # Numerical
32
+ numpy>=1.24,<3.0