Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +17 -21
requirements.txt
CHANGED
|
@@ -1,46 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
-
|
| 3 |
-
torch==2.3.1+cu121
|
| 4 |
-
torchvision==0.18.1+cu121
|
| 5 |
-
torchaudio==2.3.1+cu121
|
| 6 |
-
|
| 7 |
-
# ---------- Core Python Packages ----------
|
| 8 |
numpy
|
| 9 |
pillow>=10.2
|
| 10 |
-
opencv-python-headless
|
| 11 |
matplotlib
|
| 12 |
requests
|
| 13 |
tqdm
|
| 14 |
pypdf
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
#
|
| 18 |
-
tensorflow-cpu==2.15.*
|
| 19 |
-
transformers>=4.43,<5
|
| 20 |
accelerate>=0.30
|
| 21 |
-
# bitsandbytes
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
tf-keras # if your code imports tf_keras
|
| 25 |
-
|
| 26 |
-
# ---------- Hugging Face ----------
|
| 27 |
huggingface-hub>=0.23
|
| 28 |
sentence-transformers
|
| 29 |
|
| 30 |
-
#
|
| 31 |
langchain>=0.1.14
|
| 32 |
faiss-cpu
|
| 33 |
pymupdf
|
| 34 |
langchain-community
|
| 35 |
|
| 36 |
-
#
|
| 37 |
ultralytics
|
| 38 |
|
| 39 |
-
#
|
| 40 |
gradio>=4.28.0
|
| 41 |
spaces>=0.19.4
|
| 42 |
|
| 43 |
-
#
|
| 44 |
python-dotenv
|
| 45 |
|
| 46 |
# ---------- Databases ----------
|
|
|
|
| 1 |
+
# ---- PyTorch (pick a ZeroGPU-supported set; 2.3.x is NOT allowed) ----
|
| 2 |
+
# Option A (recommended today): Torch 2.4 line
|
| 3 |
+
torch==2.4.0
|
| 4 |
+
torchvision==0.19.0
|
| 5 |
+
torchaudio==2.4.0
|
| 6 |
|
| 7 |
+
# ---- Core Python Packages ----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
numpy
|
| 9 |
pillow>=10.2
|
| 10 |
+
opencv-python-headless
|
| 11 |
matplotlib
|
| 12 |
requests
|
| 13 |
tqdm
|
| 14 |
pypdf
|
| 15 |
|
| 16 |
+
# ---- Deep Learning / HF ----
|
| 17 |
+
# Keep TF on CPU so it doesn't probe CUDA in the main process
|
| 18 |
+
tensorflow-cpu==2.15.*
|
| 19 |
+
transformers>=4.43,<5
|
| 20 |
accelerate>=0.30
|
| 21 |
+
# bitsandbytes # avoid on ZeroGPU unless you *really* know you need it
|
| 22 |
+
tf-keras
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
huggingface-hub>=0.23
|
| 24 |
sentence-transformers
|
| 25 |
|
| 26 |
+
# ---- LangChain & RAG ----
|
| 27 |
langchain>=0.1.14
|
| 28 |
faiss-cpu
|
| 29 |
pymupdf
|
| 30 |
langchain-community
|
| 31 |
|
| 32 |
+
# ---- YOLO Detection ----
|
| 33 |
ultralytics
|
| 34 |
|
| 35 |
+
# ---- Gradio UI / Spaces ----
|
| 36 |
gradio>=4.28.0
|
| 37 |
spaces>=0.19.4
|
| 38 |
|
| 39 |
+
# ---- Logging & Utility ----
|
| 40 |
python-dotenv
|
| 41 |
|
| 42 |
# ---------- Databases ----------
|