Jai1432002 commited on
Commit
554aed5
·
1 Parent(s): d4d91f8
Files changed (4) hide show
  1. Dockerfile +2 -2
  2. demo.py +1 -1
  3. server/Dockerfile +2 -2
  4. 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 80
17
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
 
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:8000'
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 80
21
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
 
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:8000",
101
- help="Server url http://localhost:8000 default, change to your server location "
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",