Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| ENV HF_HOME=/data/hfcache \ | |
| TRANSFORMERS_CACHE=/data/hfcache \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 | |
| RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD bash -lc "uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}" | |