Spaces:
Sleeping
Sleeping
| # Use a slim Python image | |
| FROM python:3.10-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy dependencies and install them | |
| COPY ./requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | |
| # Copy the application code and model files | |
| COPY . /app | |
| # Expose the standard Hugging Face Space port | |
| EXPOSE 7860 | |
| # Command to run the app using Uvicorn | |
| # 'app:app' means look for the object named 'app' inside the file named 'app.py' | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |