Update requirements.txt
Browse files- requirements.txt +17 -35
requirements.txt
CHANGED
|
@@ -1,35 +1,17 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
#
|
| 17 |
-
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|