Spaces:
Build error
Build error
| # Use Python image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /code | |
| # Install system dependencies (optional) | |
| RUN apt-get update && apt-get install -y git | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Copy model and app | |
| COPY . . | |
| # Expose the default HF Spaces port | |
| EXPOSE 7860 | |
| # Run the FastAPI app using Uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |