Pradyumn Tendulkar commited on
Commit
60a3c49
·
1 Parent(s): 4713446

new requirements.txt for 2 products

Browse files
Files changed (1) hide show
  1. requirements.txt +38 -2
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- --find-links https://storage.googleapis.com/torch-cpu/torch_stable.html
2
  torch
3
  torchvision
4
 
@@ -10,4 +10,40 @@ python-docx
10
  sentence-transformers
11
  transformers
12
  wordcloud
13
- matplotlib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ '''--find-links https://storage.googleapis.com/torch-cpu/torch_stable.html
2
  torch
3
  torchvision
4
 
 
10
  sentence-transformers
11
  transformers
12
  wordcloud
13
+ matplotlib'''
14
+
15
+ # ===== Torch CPU Wheels (for Spaces) =====
16
+ --find-links https://storage.googleapis.com/torch-cpu/torch_stable.html
17
+ --extra-index-url https://download.pytorch.org/whl/cpu
18
+
19
+ # ===== Core Scientific Stack =====
20
+ numpy==1.26.4 # compatible with most PyTorch CPU wheels
21
+ scipy<1.11 # optional but stable with numpy 1.26
22
+
23
+ # ===== PyTorch =====
24
+ torch==2.2.2
25
+ torchvision==0.17.2
26
+
27
+ # ===== App / ML Libraries =====
28
+ gradio>=4.44.1
29
+ fastapi
30
+ uvicorn
31
+ pydantic>=1.10,<3
32
+ huggingface_hub>=0.24
33
+ scikit-learn
34
+ sentence-transformers
35
+ transformers
36
+
37
+ # ===== PDF / Document Processing =====
38
+ pypdf
39
+ PyMuPDF
40
+ python-docx
41
+
42
+ # ===== Visualization & Word Analysis =====
43
+ wordcloud
44
+ matplotlib
45
+
46
+ # ===== (Optional utilities if needed) =====
47
+ # If you use caching / async inference, you can also add:
48
+ # aiohttp
49
+ # tqdm