Spaces:
Sleeping
Sleeping
| FROM python:3.9 | |
| # Set working directory | |
| WORKDIR /code | |
| # Copy dependencies | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the model folder | |
| COPY ./model /code/model | |
| # Copy the app code | |
| COPY ./app.py /code/app.py | |
| # Start the server (Port 7860 is standard for Spaces) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |