Spaces:
Running
Running
FROM python:3.10 | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
# Use safe cache dirs | |
ENV TRANSFORMERS_CACHE=/tmp/hf-cache | |
ENV HF_HOME=/tmp/hf-home | |
ENV XDG_CACHE_HOME=/tmp/xdg | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |