Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +21 -12
requirements.txt
CHANGED
@@ -1,23 +1,32 @@
|
|
|
|
1 |
fastapi
|
2 |
uvicorn[standard]
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
7 |
|
|
|
8 |
python-docx
|
9 |
openpyxl
|
10 |
python-pptx
|
11 |
-
PyMuPDF
|
12 |
-
|
|
|
|
|
13 |
|
|
|
14 |
Pillow
|
15 |
-
|
|
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
sentencepiece
|
21 |
|
22 |
-
#
|
23 |
-
|
|
|
1 |
+
# FastAPI and ASGI server
|
2 |
fastapi
|
3 |
uvicorn[standard]
|
4 |
|
5 |
+
# Gradio interface
|
6 |
+
gradio==4.19.2
|
7 |
+
|
8 |
+
# Transformers and inference
|
9 |
+
transformers==4.36.2
|
10 |
+
torch==2.1.2
|
11 |
+
sentencepiece
|
12 |
|
13 |
+
# Document processing
|
14 |
python-docx
|
15 |
openpyxl
|
16 |
python-pptx
|
17 |
+
PyMuPDF # for fitz-based PDF text extraction
|
18 |
+
|
19 |
+
# PDF OCR fallback (optional)
|
20 |
+
pdfplumber # optional if you want enhanced PDF OCR/text fallback
|
21 |
|
22 |
+
# Image processing
|
23 |
Pillow
|
24 |
+
easyocr
|
25 |
+
numpy # required by easyocr
|
26 |
|
27 |
+
# File upload handling
|
28 |
+
python-multipart
|
29 |
+
aiofiles
|
|
|
30 |
|
31 |
+
# Progress bars and logging (used by transformers)
|
32 |
+
tqdm
|