Spaces:
Paused
Paused
File size: 589 Bytes
c82a45d 05f8b70 df95825 05f8b70 c82a45d 05f8b70 ac48f84 05f8b70 005a0a5 c82a45d 7b08d27 925203b abe7d5b c82a45d db9745e abe7d5b c82a45d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | FROM python:3.11.7
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \
apt-get clean && apt-get -y autoremove
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements.txt \
&& python -m pip cache purge
RUN python -m unidic download
RUN mkdir -p /app/tts_models
COPY app.py .
ENV USE_CPU=1
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|