Spaces:
Runtime error
Runtime error
File size: 385 Bytes
1a4a827 75ef31c 51163a8 1a4a827 75ef31c 51163a8 1a4a827 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# π Create custom cache directory with proper permissions
RUN mkdir -p /app/cache
# π Set TRANSFORMERS_CACHE permanently
ENV TRANSFORMERS_CACHE=/app/cache
COPY llm_service.py .
EXPOSE 7860
CMD ["uvicorn", "llm_service:app", "--host", "0.0.0.0", "--port", "7860"]
|