Skip to content
代码片段 群组 项目
提交 ddc86f2e 编辑于 作者: AUTOMATIC's avatar AUTOMATIC
浏览文件

--gradio-debug for collab users

上级 c50fa7a9
No related branches found
No related tags found
无相关合并请求
...@@ -41,6 +41,7 @@ parser.add_argument("--port", type=int, help="launch gradio with given server po ...@@ -41,6 +41,7 @@ parser.add_argument("--port", type=int, help="launch gradio with given server po
parser.add_argument("--show-negative-prompt", action='store_true', help="does not do anything", default=False) parser.add_argument("--show-negative-prompt", action='store_true', help="does not do anything", default=False)
parser.add_argument("--ui-config-file", type=str, help="filename to use for ui configuration", default=os.path.join(script_path, 'ui-config.json')) parser.add_argument("--ui-config-file", type=str, help="filename to use for ui configuration", default=os.path.join(script_path, 'ui-config.json'))
parser.add_argument("--ui-settings-file", type=str, help="filename to use for ui settings", default=os.path.join(script_path, 'config.json')) parser.add_argument("--ui-settings-file", type=str, help="filename to use for ui settings", default=os.path.join(script_path, 'config.json'))
parser.add_argument("--gradio-debug", action='store_true', help="launch gradio with --debug option")
cmd_opts = parser.parse_args() cmd_opts = parser.parse_args()
......
...@@ -115,7 +115,7 @@ def webui(): ...@@ -115,7 +115,7 @@ def webui():
run_pnginfo=modules.extras.run_pnginfo run_pnginfo=modules.extras.run_pnginfo
) )
demo.launch(share=cmd_opts.share, server_name="0.0.0.0" if cmd_opts.listen else None, server_port=cmd_opts.port) demo.launch(share=cmd_opts.share, server_name="0.0.0.0" if cmd_opts.listen else None, server_port=cmd_opts.port, debug=cmd_opts.gradio_debug)
if __name__ == "__main__": if __name__ == "__main__":
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册