Update core.py

This commit is contained in:
Feanix-Fyre 2023-08-23 08:58:11 -04:00 committed by GitHub
parent 98595ca80a
commit 83fc91e4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,8 +25,10 @@ def launch() -> None:
ui_layout_module.pre_check()
ui_layout_module.render()
ui_layout_module.listen()
ui.launch(show_api = False)
if facefusion.globals.gradio_share is not None:
ui.launch(show_api = False, server_name=facefusion.globals.gradio_listen, server_port=facefusion.globals.gradio_port, share=facefusion.globals.gradio_share)
else:
ui.launch(show_api = False)
def load_ui_layout_module(ui_layout : str) -> Any:
try: