Spaces:
Sleeping
Sleeping
Commit
·
4e4d843
1
Parent(s):
8134ad6
handle both ar and eng
Browse files- Dockerfile +5 -2
- requirements.txt +1 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
# Use Python 3.
|
| 2 |
-
FROM python:3.
|
| 3 |
|
| 4 |
# Set working directory in the container
|
| 5 |
WORKDIR /app
|
|
@@ -14,6 +14,9 @@ ENV HF_HOME=/app/.cache/huggingface
|
|
| 14 |
# Update PATH for uvicorn
|
| 15 |
ENV PATH="/home/myuser/.local/bin:${PATH}"
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
# Copy requirements.txt and install dependencies
|
| 18 |
COPY --chown=myuser:myuser requirements.txt .
|
| 19 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 1 |
+
# Use Python 3.10 as the base image to support scipy>=1.14.1
|
| 2 |
+
FROM python:3.10
|
| 3 |
|
| 4 |
# Set working directory in the container
|
| 5 |
WORKDIR /app
|
|
|
|
| 14 |
# Update PATH for uvicorn
|
| 15 |
ENV PATH="/home/myuser/.local/bin:${PATH}"
|
| 16 |
|
| 17 |
+
# Upgrade pip to the latest version
|
| 18 |
+
RUN pip install --upgrade pip
|
| 19 |
+
|
| 20 |
# Copy requirements.txt and install dependencies
|
| 21 |
COPY --chown=myuser:myuser requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
requirements.txt
CHANGED
|
@@ -4,4 +4,4 @@ fastapi==0.115.2
|
|
| 4 |
uvicorn==0.32.0
|
| 5 |
pydantic==2.9.2
|
| 6 |
numpy==2.0.2
|
| 7 |
-
scipy==1.
|
|
|
|
| 4 |
uvicorn==0.32.0
|
| 5 |
pydantic==2.9.2
|
| 6 |
numpy==2.0.2
|
| 7 |
+
scipy==1.13.1
|