GopalKrushnaMahapatra commited on
Commit
f4400c6
·
verified ·
1 Parent(s): 7936afb

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +17 -35
requirements.txt CHANGED
@@ -1,35 +1,17 @@
1
- # Use Python 3.10
2
- FROM python:3.10-slim
3
-
4
- # 1. Install Java 21 (Required) and Build Tools
5
- RUN apt-get update && \
6
- apt-get install -y \
7
- openjdk-21-jre-headless \
8
- build-essential \
9
- python3-dev \
10
- gcc \
11
- && apt-get clean
12
-
13
- # Set Java Home
14
- ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
15
-
16
- # 2. Set working directory
17
- WORKDIR /app
18
-
19
- # 3. SET WRITABLE CACHE FOLDERS (Fixes Runtime Error)
20
- # This tells LanguageTool to download files to /app/cache instead of /root
21
- ENV XDG_CACHE_HOME=/app/cache
22
- ENV TRANSFORMERS_CACHE=/app/cache
23
- ENV HF_HOME=/app/cache
24
- RUN mkdir -p /app/cache && chmod 777 /app/cache
25
-
26
- # 4. Install dependencies
27
- COPY requirements.txt .
28
- RUN pip install --no-cache-dir --upgrade pip && \
29
- pip install --no-cache-dir -r requirements.txt
30
-
31
- # 5. Copy app
32
- COPY . .
33
-
34
- # 6. Run app
35
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ fastapi
2
+ uvicorn[standard]
3
+ python-dotenv
4
+ python-multipart
5
+ passlib[bcrypt]
6
+ PyJWT
7
+ python-docx
8
+ PyPDF2
9
+ numpy
10
+ scikit-learn
11
+ # FORCE CPU VERSION of PyTorch
12
+ --extra-index-url https://download.pytorch.org/whl/cpu
13
+ torch
14
+ transformers
15
+ sentence-transformers
16
+ # Grammar
17
+ language-tool-python