Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir \ | |
| torch==2.6.0+cpu \ | |
| --index-url https://download.pytorch.org/whl/cpu | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY utils.py . | |
| COPY app/ app/ | |
| COPY .streamlit/ .streamlit/ | |
| COPY data/ data/ | |
| COPY models/ models/ | |
| ENV KMP_DUPLICATE_LIB_OK=TRUE | |
| # HF Spaces requires a non-root user with uid 1000 | |
| RUN useradd -m -u 1000 user && chown -R user /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app/main.py", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.port=7860", \ | |
| "--server.headless=true"] | |