Spaces:
Runtime error
Runtime error
| 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"] |