jlopez00 commited on
Commit
2e0b1b0
1 Parent(s): 68fd623

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. tts_service/app.py +2 -3
tts_service/app.py CHANGED
@@ -108,12 +108,11 @@ with gr.Blocks(theme=my_applio, title="Applio", css="footer{display:none !import
108
  settings_tab()
109
 
110
 
111
- def launch_gradio(port):
112
  Applio.launch(
113
  favicon_path="assets/ICON.ico",
114
  share="--share" in sys.argv,
115
  inbrowser="--open" in sys.argv,
116
- server_port=port,
117
  )
118
 
119
 
@@ -129,7 +128,7 @@ if __name__ == "__main__":
129
  port = get_port_from_args()
130
  for _ in range(MAX_PORT_ATTEMPTS):
131
  try:
132
- launch_gradio(port)
133
  break
134
  except OSError:
135
  print(f"Failed to launch on port {port}, trying again on port {port - 1}...")
 
108
  settings_tab()
109
 
110
 
111
+ def launch_gradio():
112
  Applio.launch(
113
  favicon_path="assets/ICON.ico",
114
  share="--share" in sys.argv,
115
  inbrowser="--open" in sys.argv,
 
116
  )
117
 
118
 
 
128
  port = get_port_from_args()
129
  for _ in range(MAX_PORT_ATTEMPTS):
130
  try:
131
+ launch_gradio()
132
  break
133
  except OSError:
134
  print(f"Failed to launch on port {port}, trying again on port {port - 1}...")