Spaces:
Paused
Paused
Commit ·
554aed5
1
Parent(s): d4d91f8
chnages
Browse files- Dockerfile +2 -2
- demo.py +1 -1
- server/Dockerfile +2 -2
- test/test_streaming.py +2 -2
Dockerfile
CHANGED
|
@@ -13,5 +13,5 @@ RUN python -m pip install -r requirements.txt \
|
|
| 13 |
|
| 14 |
COPY app.py .
|
| 15 |
|
| 16 |
-
EXPOSE
|
| 17 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 13 |
|
| 14 |
COPY app.py .
|
| 15 |
|
| 16 |
+
EXPOSE 7860
|
| 17 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
demo.py
CHANGED
|
@@ -6,7 +6,7 @@ import json
|
|
| 6 |
import os
|
| 7 |
|
| 8 |
|
| 9 |
-
SERVER_URL = 'http://localhost:
|
| 10 |
OUTPUT = "./demo_outputs"
|
| 11 |
cloned_speakers = {}
|
| 12 |
|
|
|
|
| 6 |
import os
|
| 7 |
|
| 8 |
|
| 9 |
+
SERVER_URL = 'http://localhost:7860'
|
| 10 |
OUTPUT = "./demo_outputs"
|
| 11 |
cloned_speakers = {}
|
| 12 |
|
server/Dockerfile
CHANGED
|
@@ -17,5 +17,5 @@ COPY main.py .
|
|
| 17 |
ENV NVIDIA_DISABLE_REQUIRE=1
|
| 18 |
|
| 19 |
ENV NUM_THREADS=2
|
| 20 |
-
EXPOSE
|
| 21 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 17 |
ENV NVIDIA_DISABLE_REQUIRE=1
|
| 18 |
|
| 19 |
ENV NUM_THREADS=2
|
| 20 |
+
EXPOSE 7860
|
| 21 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
test/test_streaming.py
CHANGED
|
@@ -97,8 +97,8 @@ if __name__ == "__main__":
|
|
| 97 |
)
|
| 98 |
parser.add_argument(
|
| 99 |
"--server_url",
|
| 100 |
-
default="http://localhost:
|
| 101 |
-
help="Server url http://localhost:
|
| 102 |
)
|
| 103 |
parser.add_argument(
|
| 104 |
"--stream_chunk_size",
|
|
|
|
| 97 |
)
|
| 98 |
parser.add_argument(
|
| 99 |
"--server_url",
|
| 100 |
+
default="http://localhost:7860",
|
| 101 |
+
help="Server url http://localhost:7860 default, change to your server location "
|
| 102 |
)
|
| 103 |
parser.add_argument(
|
| 104 |
"--stream_chunk_size",
|