From 1778d37040945b6809643a22026d178a9961164e Mon Sep 17 00:00:00 2001 From: Midcoastal Date: Thu, 4 Jan 2024 14:55:25 -0500 Subject: [PATCH] Corrected Conditional Check --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index 76c1cb0a7..9c561c26b 100644 --- a/webui.py +++ b/webui.py @@ -266,7 +266,7 @@ def start_ui(): favicon_path='html/logo.ico', allowed_paths=[os.path.dirname(__file__), cmd_opts.data_dir], app_kwargs=fastapi_args, - _frontend=not cmd_opts.share, + _frontend=True and cmd_opts.share, ) if cmd_opts.data_dir is not None: ui_tempdir.register_tmp_file(shared.demo, os.path.join(cmd_opts.data_dir, 'x'))