Spaces:
Sleeping
Sleeping
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . /code | |
| # Create cache directory for Hugging Face (optional but good practice) | |
| RUN mkdir -p /code/cache && chmod 777 /code/cache | |
| # Set environment variables | |
| ENV HOME=/code | |
| # Hugging Face Spaces serves on port 7860 by default | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |