From da6cab78d1ea45048d4b75ac15dbc92b59734d24 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Sun, 21 Jan 2024 23:02:52 +0800 Subject: [PATCH] Add files via upload --- tools/subfix_webui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/subfix_webui.py b/tools/subfix_webui.py index 4985eef..ad4907b 100644 --- a/tools/subfix_webui.py +++ b/tools/subfix_webui.py @@ -296,6 +296,7 @@ def set_global(load_json, load_list, json_key_text, json_key_path, batch): if __name__ == "__main__": parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('--load_json', default="None", help='source file, like demo.json') + parser.add_argument('--is_share', default="False", help='whether webui is_share=True') parser.add_argument('--load_list', default="None", help='source file, like demo.list') parser.add_argument('--webui_port_subfix', default=9871, help='source file, like demo.list') parser.add_argument('--json_key_text', default="text", help='the text key name in json, Default: text') @@ -490,5 +491,6 @@ if __name__ == "__main__": server_name="0.0.0.0", inbrowser=True, quiet=True, + share=eval(args.is_share), server_port=int(args.webui_port_subfix) ) \ No newline at end of file