Spaces:
Running
Running
Echo-ai
commited on
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -8,8 +8,8 @@ RUN apt-get update && apt-get install -y \
|
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
# Download the code and requirements from Hugging Face
|
11 |
-
RUN wget -O
|
12 |
-
&& wget -O requirements.txt "https://huggingface.co/datasets/gefiwek187/realtime-api/resolve/main/
|
13 |
|
14 |
# Install Python dependencies
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
@@ -19,4 +19,4 @@ RUN mkdir -p /app/audio_files && chmod -R 777 /app/audio_files
|
|
19 |
|
20 |
EXPOSE 7860
|
21 |
|
22 |
-
CMD ["uvicorn", "
|
|
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
# Download the code and requirements from Hugging Face
|
11 |
+
RUN wget -O api.py "https://huggingface.co/datasets/gefiwek187/realtime-api/resolve/main/etts-api.py" \
|
12 |
+
&& wget -O requirements.txt "https://huggingface.co/datasets/gefiwek187/realtime-api/resolve/main/erequirements.txt"
|
13 |
|
14 |
# Install Python dependencies
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
19 |
|
20 |
EXPOSE 7860
|
21 |
|
22 |
+
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|