Spaces:
Runtime error
Runtime error
File size: 417 Bytes
d6f9a33 669c97b d6f9a33 669c97b d6f9a33 669c97b d6f9a33 102a3b0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM python:3.10
# Set environment variables for Hugging Face cache
ENV HF_HOME=/app/huggingface
ENV TRANSFORMERS_CACHE=/app/huggingface
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Ensure cache directory exists and is writable
RUN mkdir -p /app/huggingface && chmod -R 777 /app/huggingface
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|