Spaces:
Sleeping
Sleeping
File size: 406 Bytes
532cbb3 | 1 2 3 4 5 6 7 8 9 10 | FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 HF_HOME=/tmp/hf TRANSFORMERS_VERBOSITY=error OMP_NUM_THREADS=4
WORKDIR /app
RUN pip install --no-cache-dir \
torch --index-url https://download.pytorch.org/whl/cpu \
&& pip install --no-cache-dir "transformers>=5.15,<6" fastapi "uvicorn[standard]" huggingface_hub
COPY . /app
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|