Spaces:
Running
Running
File size: 720 Bytes
8314611 2d67a59 d244e05 8314611 d244e05 c4439c7 2c8a977 8314611 d244e05 8314611 2d67a59 8314611 2c8a977 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
wget \
&& rm -rf /var/lib/apt/lists/*
# Download the code and requirements from Hugging Face
RUN wget -O api.py "https://huggingface.co/datasets/gefiwek187/realtime-api/resolve/main/etts-api-updated.py" \
&& wget -O requirements.txt "https://huggingface.co/datasets/gefiwek187/realtime-api/resolve/main/erequirements.txt"
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Create audio_files directory and set permissions
RUN mkdir -p /app/audio_files && chmod -R 777 /app/audio_files
EXPOSE 7860
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"] |