symonw commited on
Commit
851ee22
·
verified ·
1 Parent(s): a521991

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +10 -2
requirements.txt CHANGED
@@ -1,8 +1,16 @@
 
1
  transformers==4.44.2
2
  torch
3
  opencv-python
4
  numpy
5
  einops
6
- grad-cam
 
 
 
 
7
  spaces
8
- # gradio[oauth]==5.9.0 etc. are handled separately in the Dockerfile/build, but if you have them here too, keep
 
 
 
 
1
+ # Core dependencies pinned for compatibility
2
  transformers==4.44.2
3
  torch
4
  opencv-python
5
  numpy
6
  einops
7
+
8
+ # Correct Grad-CAM package (NOT pytorch-grad-cam)
9
+ grad-cam>=1.5.0
10
+
11
+ # Hugging Face Spaces extras
12
  spaces
13
+
14
+ # Optional: if Gradio is not already handled by the Space build, you can add:
15
+ # gradio==5.9.0
16
+ # But usually Spaces injects the right version — only add if you get Gradio errors