Spaces:
Paused
Paused
File size: 553 Bytes
537edea 77b30b8 537edea 79b8c9c a8a3edf 537edea | 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 26 27 28 29 30 31 32 33 34 35 | FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir \
flask \
werkzeug \
"moviepy<2.0.0" \
decorator \
openai-whisper \
edge-tts \
requests \
librosa \
numpy \
transformers \
torch \
librosa \
soundfile
RUN python -c "import whisper; whisper.load_model('base')"
COPY app.py .
RUN mkdir -p uploads && chmod 777 uploads
EXPOSE 7860
CMD ["python", "app.py"] |