This commit is contained in:
mrq 2023-02-09 20:49:22 +00:00
parent 729be135ef
commit 145298b766

3
app.py
View File

@ -576,7 +576,8 @@ if __name__ == "__main__":
import uvicorn import uvicorn
uvicorn.run("app:app", host=args.listen_host, port=args.listen_port) uvicorn.run("app:app", host=args.listen_host, port=args.listen_port)
else: else:
webui = setup_gradio().launch(share=args.share, prevent_thread_lock=True) webui = setup_gradio()
webui.launch(share=args.share, prevent_thread_lock=True)
tts = setup_tortoise() tts = setup_tortoise()
webui.block_thread() webui.block_thread()