Spaces:
Runtime error
Runtime error
| FROM --platform=linux/amd64 python:3.10 | |
| WORKDIR /code | |
| COPY requirements.txt /code/requirements.txt | |
| COPY code/app.py /code/app.py | |
| RUN pip install -r /code/requirements.txt | |
| # Start the FastAPI app on port 7860, the default port expected by Spaces | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |