Update requirements.txt
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
spaces
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|