Spaces:
Runtime error
Runtime error
File size: 986 Bytes
6864301 f6e210e 6864301 f6e210e 6864301 4390e63 6864301 4390e63 6864301 4da9907 6864301 f6e210e 4390e63 6864301 4390e63 6864301 4390e63 6864301 4390e63 6864301 4390e63 6864301 |
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 36 37 38 39 40 |
FROM python:3.9-slim-buster
# Install system dependencies including git
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
pkg-config \
libblis-dev \
python3-dev \
wget \
git \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Set environment variables
ENV BLIS_ARCH="generic"
ENV COQUI_TTS_AGREED=1
ENV NUMBA_DISABLE_CACHE=1
# Install Coqui TTS directly from GitHub
RUN pip install --upgrade pip
RUN pip install git+https://github.com/coqui-ai/TTS.git
# Install other dependencies
COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt --timeout=300
# Copy app files
COPY local_server_new.py /app/
COPY audio/speaker_reference.wav /app/audio/speaker_reference.wav
COPY Web_Page /app/Web_Page
# Expose the port used by Hugging Face Spaces
EXPOSE 7860
# Start the FastAPI server
CMD ["python", "-m", "uvicorn", "local_server_new:app", "--host", "0.0.0.0", "--port", "7860"]
|