marquesafonso commited on
Commit
f4a9639
·
1 Parent(s): 02ac627

change port to 7860; add server_name 0.0.0.0

Browse files
Files changed (4) hide show
  1. Dockerfile +1 -1
  2. README.md +1 -1
  3. docker-compose.yml +1 -1
  4. main.py +1 -1
Dockerfile CHANGED
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y imagemagick && sed -i '91d' /etc/ImageM
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Make port 8000 available to the world outside this container
18
- EXPOSE 7680
19
 
20
  # Run main.py when the container launches
21
  CMD ["python", "main.py"]
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Make port 8000 available to the world outside this container
18
+ EXPOSE 7860
19
 
20
  # Run main.py when the container launches
21
  CMD ["python", "main.py"]
README.md CHANGED
@@ -5,7 +5,7 @@ colorFrom: gray
5
  colorTo: blue
6
  sdk: docker
7
  app_file: main.py
8
- app_port: 7680
9
  pinned: true
10
  license: cc-by-nc-4.0
11
  short_description: A multilingual automatic speech transcription tool
 
5
  colorTo: blue
6
  sdk: docker
7
  app_file: main.py
8
+ app_port: 7860
9
  pinned: true
10
  license: cc-by-nc-4.0
11
  short_description: A multilingual automatic speech transcription tool
docker-compose.yml CHANGED
@@ -4,6 +4,6 @@ services:
4
  context: .
5
  dockerfile: Dockerfile
6
  ports:
7
- - "7680:7680"
8
  volumes:
9
  - .:/app
 
4
  context: .
5
  dockerfile: Dockerfile
6
  ports:
7
+ - "7860:7860"
8
  volumes:
9
  - .:/app
main.py CHANGED
@@ -42,7 +42,7 @@ def main():
42
  outputs=[text_output, srt_file, text_clean_output, json_output],
43
  allow_flagging="never"
44
  )
45
- demo.launch()
46
 
47
  if __name__ == '__main__':
48
  main()
 
42
  outputs=[text_output, srt_file, text_clean_output, json_output],
43
  allow_flagging="never"
44
  )
45
+ demo.launch(server_name="0.0.0.0", server_port=7860)
46
 
47
  if __name__ == '__main__':
48
  main()