ikraamkb commited on
Commit
fec272c
·
verified ·
1 Parent(s): cf9a79a

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +21 -12
requirements.txt CHANGED
@@ -1,23 +1,32 @@
 
1
  fastapi
2
  uvicorn[standard]
3
 
4
- python-multipart
5
- aiofiles
6
- jinja2
 
 
 
 
7
 
 
8
  python-docx
9
  openpyxl
10
  python-pptx
11
- PyMuPDF
12
- pdfplumber
 
 
13
 
 
14
  Pillow
15
- tqdm
 
16
 
17
- gradio==4.19.2
18
- transformers==4.36.2
19
- torch==2.1.2
20
- sentencepiece
21
 
22
- # Force compatible version of Pydantic
23
- pydantic==2.5.3
 
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