Blane187 commited on
Commit
951072c
·
verified ·
1 Parent(s): 3bb3d55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -23
app.py CHANGED
@@ -102,26 +102,4 @@ with gr.Blocks(title="RVC UI") as app:
102
  )
103
 
104
 
105
- try:
106
- import signal
107
-
108
- def cleanup(signum, frame):
109
- signame = signal.Signals(signum).name
110
- print(f"Got signal {signame} ({signum})")
111
- app.close()
112
- sys.exit(0)
113
-
114
- signal.signal(signal.SIGINT, cleanup)
115
- signal.signal(signal.SIGTERM, cleanup)
116
- if config.global_link:
117
- app.queue(max_size=1022).launch(share=True, max_threads=511)
118
- else:
119
- app.queue(max_size=1022).launch(
120
- max_threads=511,
121
- server_name="0.0.0.0",
122
- inbrowser=not config.noautoopen,
123
- server_port=config.listen_port,
124
- quiet=True,
125
- )
126
- except Exception as e:
127
- logger.error(str(e))
 
102
  )
103
 
104
 
105
+ app.launch()