Spaces:
Sleeping
Sleeping
File size: 604 Bytes
dd6dcad | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | FROM python:3.9-slim
WORKDIR /app
# Instalar dependencias del sistema necesarias para audio y FunASR
RUN apt-get update && apt-get install -y \
libsndfile1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Instalar dependencias Python
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copiar el código de la app
COPY app /app
# Removed build-time model caching to avoid OOM. Model will download on first boot.
# Exponer el puerto de Hugging Face Spaces
EXPOSE 7860
# Comando para iniciar fastapi
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|