From c2775528c9e5336b37987832795621fa49ff97d3 Mon Sep 17 00:00:00 2001 From: Rahul Kolasseri Date: Tue, 20 Sep 2022 11:56:07 +0000 Subject: [PATCH] added __name__ == __main__ to launch.py so it can be imported without launching the webUI --- launch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launch.py b/launch.py index 197e656b..a357b917 100644 --- a/launch.py +++ b/launch.py @@ -123,5 +123,5 @@ def start_webui(): import webui webui.webui() - -start_webui() +if __name__ == "__main__": + start_webui()