parthnuwal7 commited on
Commit
c65ea29
·
1 Parent(s): 102e87a

Fixing docker file

Browse files
Files changed (1) hide show
  1. requirements-docker.txt +46 -0
requirements-docker.txt ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Docker Requirements for ABSA Backend API
2
+ # Optimized for HuggingFace Spaces deployment with FastAPI
3
+
4
+ # ===== API Framework =====
5
+ fastapi>=0.104.0,<0.111.0
6
+ uvicorn[standard]>=0.24.0,<0.28.0
7
+ pydantic>=2.0.0,<3.0.0
8
+ python-multipart>=0.0.6
9
+
10
+ # ===== Core ML Libraries =====
11
+ # Using HF Inference API instead of local models for lighter deployment
12
+ requests>=2.31.0
13
+ huggingface-hub>=0.19.0
14
+
15
+ # ===== Data Processing =====
16
+ pandas>=1.5.0,<2.1.0
17
+ numpy>=1.24.0,<1.26.0
18
+ scikit-learn>=1.3.0,<1.4.0
19
+ langdetect>=1.0.9
20
+
21
+ # ===== Optional: Full ML Stack (Uncomment if using local models) =====
22
+ # torch>=2.0.0,<2.2.0
23
+ # transformers>=4.30.0,<4.37.0
24
+ # pyabsa>=2.4.0,<3.0.0
25
+ # sentencepiece>=0.1.99
26
+ # sacremoses>=0.0.53
27
+ # faiss-cpu>=1.7.4
28
+
29
+ # ===== Streamlit (for dual interface) =====
30
+ streamlit>=1.28.0,<1.30.0
31
+ streamlit-option-menu>=0.3.6
32
+
33
+ # ===== Visualizations =====
34
+ plotly>=5.15.0,<5.18.0
35
+ matplotlib>=3.7.0,<3.8.0
36
+ networkx>=3.0
37
+
38
+ # ===== Utilities =====
39
+ joblib>=1.3.0
40
+ tqdm>=4.65.0
41
+ pillow>=10.0.0,<10.2.0
42
+ python-dateutil>=2.8.0
43
+
44
+ # ===== Testing (Optional) =====
45
+ pytest>=7.0.0
46
+ httpx>=0.25.0