Spaces:
Runtime error
Runtime error
File size: 609 Bytes
6823dec 1d92a29 6823dec 1d92a29 1b8e514 6823dec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
FROM python3.10-slim
WORKDIR /app
COPY app_hf.py .
COPY src/ .
COPY requirements.txt .
# Install system dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-pip \
python3-dev \
git \
libomp-dev \
libopenblas-dev \
libblas-dev \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 7860
CMD ["python", "app_hf.py"] |