Spaces:
Runtime error
Runtime error
File size: 440 Bytes
bb4636d f2ded98 bb4636d f2ded98 bb4636d 5192dc4 bb4636d f2ded98 395f521 bb4636d f2ded98 bb4636d f2ded98 0c3d35a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /app
# CRITICAL FIX: Directs model downloads to a writable directory inside the container
ENV HF_HOME /app/.cache/huggingface
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py /app/
COPY simplifier_model_ft /app/simplifier_model_ft
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] |