Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +31 -56
requirements.txt
CHANGED
@@ -1,75 +1,50 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
gradio==3.50.2
|
4 |
-
pandas
|
5 |
-
matplotlib
|
6 |
-
seaborn
|
7 |
-
transformers
|
8 |
-
torch
|
9 |
-
pdfplumber
|
10 |
-
python-docx
|
11 |
-
pydantic<2.0
|
12 |
-
tools
|
13 |
-
openpyxl
|
14 |
-
pytesseract
|
15 |
-
deep-translator
|
16 |
-
frontend
|
17 |
-
pillow
|
18 |
-
easyocr
|
19 |
-
python-pptx
|
20 |
-
pymupdf
|
21 |
-
tika
|
22 |
-
hf_xet"""
|
23 |
-
# --- Core Framework ---
|
24 |
fastapi
|
25 |
uvicorn[standard]
|
|
|
|
|
26 |
gradio==4.19.2
|
27 |
|
28 |
-
#
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
|
33 |
-
#
|
|
|
34 |
python-docx
|
35 |
-
openpyxl
|
36 |
python-pptx
|
37 |
-
|
38 |
pdfplumber
|
39 |
-
|
40 |
-
|
41 |
pandas
|
|
|
42 |
|
43 |
-
#
|
44 |
-
Pillow
|
45 |
easyocr
|
46 |
-
opencv-python
|
47 |
|
48 |
-
#
|
49 |
-
|
50 |
-
torch==2.1.2
|
51 |
-
sentencepiece
|
52 |
-
tqdm
|
53 |
|
54 |
-
#
|
55 |
-
|
56 |
-
gTTS
|
57 |
-
pydub
|
58 |
|
59 |
-
#
|
60 |
faiss-cpu
|
61 |
chromadb
|
62 |
-
sentence-transformers
|
63 |
-
langchain
|
64 |
-
farm-haystack
|
65 |
|
66 |
-
#
|
67 |
-
|
68 |
-
# (Optional: install Detectron2 or YOLO separately based on GPU/CPU availability)
|
69 |
|
70 |
-
#
|
71 |
-
|
72 |
-
|
|
|
73 |
|
74 |
-
#
|
75 |
-
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# FastAPI & ASGI Server
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
fastapi
|
4 |
uvicorn[standard]
|
5 |
+
|
6 |
+
# Gradio UI
|
7 |
gradio==4.19.2
|
8 |
|
9 |
+
# Transformers & Torch
|
10 |
+
transformers==4.36.2
|
11 |
+
torch==2.1.2
|
12 |
+
sentencepiece
|
13 |
|
14 |
+
# PDF, DOCX, PPTX, XLSX parsing
|
15 |
+
PyMuPDF
|
16 |
python-docx
|
|
|
17 |
python-pptx
|
18 |
+
openpyxl
|
19 |
pdfplumber
|
20 |
+
|
21 |
+
# Data Handling
|
22 |
pandas
|
23 |
+
numpy
|
24 |
|
25 |
+
# OCR for printed text
|
|
|
26 |
easyocr
|
|
|
27 |
|
28 |
+
# Chart & table parsing
|
29 |
+
layoutparser[layoutmodels,tesseract]
|
|
|
|
|
|
|
30 |
|
31 |
+
# Image processing
|
32 |
+
Pillow
|
|
|
|
|
33 |
|
34 |
+
# Retrieval & QA (lightweight FAISS/Chroma)
|
35 |
faiss-cpu
|
36 |
chromadb
|
|
|
|
|
|
|
37 |
|
38 |
+
# Optional: Graph extraction
|
39 |
+
ultralytics # YOLOv8
|
|
|
40 |
|
41 |
+
# Optional: Speech I/O
|
42 |
+
gtts
|
43 |
+
SpeechRecognition
|
44 |
+
pyaudio # only for local dev; may need to be replaced/removed for HF Spaces
|
45 |
|
46 |
+
# Utils
|
47 |
+
tqdm
|
48 |
+
aiofiles
|
49 |
+
python-multipart
|
50 |
+
jinja2
|