Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +20 -24
requirements.txt
CHANGED
|
@@ -1,44 +1,40 @@
|
|
| 1 |
-
#
|
| 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 |
-
opencv-python
|
| 11 |
matplotlib
|
| 12 |
requests
|
| 13 |
tqdm
|
| 14 |
pypdf
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
huggingface-hub
|
| 24 |
sentence-transformers
|
| 25 |
|
| 26 |
-
#
|
| 27 |
-
langchain>=0.1.14
|
|
|
|
|
|
|
| 28 |
faiss-cpu
|
| 29 |
pymupdf
|
| 30 |
-
langchain-community
|
| 31 |
|
| 32 |
-
#
|
| 33 |
ultralytics
|
| 34 |
|
| 35 |
-
#
|
| 36 |
gradio>=4.28.0
|
| 37 |
-
spaces
|
| 38 |
|
| 39 |
-
#
|
| 40 |
python-dotenv
|
| 41 |
|
|
|
|
| 42 |
# ---------- Databases ----------
|
| 43 |
mysqlclient
|
| 44 |
mysql-connector-python
|
|
|
|
| 1 |
+
# --- Core Python Packages ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
numpy
|
| 3 |
+
pillow
|
| 4 |
+
opencv-python
|
| 5 |
matplotlib
|
| 6 |
requests
|
| 7 |
tqdm
|
| 8 |
pypdf
|
| 9 |
|
| 10 |
+
# --- Deep Learning (DO NOT pin torch on ZeroGPU) ---
|
| 11 |
+
tensorflow==2.15.1
|
| 12 |
+
transformers>=4.40.0
|
| 13 |
+
accelerate
|
| 14 |
+
safetensors
|
| 15 |
+
|
| 16 |
+
# --- Hugging Face ---
|
| 17 |
+
huggingface-hub
|
| 18 |
sentence-transformers
|
| 19 |
|
| 20 |
+
# --- LangChain & RAG ---
|
| 21 |
+
langchain>=0.1.14,<0.3
|
| 22 |
+
langchain-community>=0.2.0
|
| 23 |
+
langchain-huggingface>=0.0.11
|
| 24 |
faiss-cpu
|
| 25 |
pymupdf
|
|
|
|
| 26 |
|
| 27 |
+
# --- YOLO Detection ---
|
| 28 |
ultralytics
|
| 29 |
|
| 30 |
+
# --- Gradio UI / Spaces ---
|
| 31 |
gradio>=4.28.0
|
| 32 |
+
spaces
|
| 33 |
|
| 34 |
+
# --- Logging & Utility ---
|
| 35 |
python-dotenv
|
| 36 |
|
| 37 |
+
|
| 38 |
# ---------- Databases ----------
|
| 39 |
mysqlclient
|
| 40 |
mysql-connector-python
|