Spaces:
Runtime error
Runtime error
| FROM python:3.13-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install uv for fast dependency management | |
| RUN pip install uv | |
| # Copy project files | |
| COPY pyproject.toml uv.lock ./ | |
| COPY *.py ./ | |
| # Install Python dependencies | |
| RUN uv pip install --system --no-cache -r pyproject.toml | |
| RUN uv pip install --system --no-cache gradio | |
| # Create directories | |
| RUN mkdir -p data results trained_model | |
| # Expose Gradio port | |
| EXPOSE 7860 | |
| # Run the Gradio app | |
| CMD ["python", "app.py"] | |