aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-18 10:36:11 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-05-18 10:37:25 +0300
commitae252cd5bc6daa8295ed1ded8ca101812d0df43b (patch)
tree7ba3b28a97c57cf79d78b93e5a4172dbb8ca1fc6 /webui.py
parent7fd80951ad44e184ff10da8d8daeb38a699477fa (diff)
add --gradio-allowed-path commandline option
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/webui.py b/webui.py
index cebfba96..b4a21e73 100644
--- a/webui.py
+++ b/webui.py
@@ -329,7 +329,8 @@ def webui():
debug=cmd_opts.gradio_debug,
auth=[tuple(cred.split(':')) for cred in gradio_auth_creds] if gradio_auth_creds else None,
inbrowser=cmd_opts.autolaunch,
- prevent_thread_lock=True
+ prevent_thread_lock=True,
+ allowed_paths=cmd_opts.gradio_allowed_path,
)
if cmd_opts.add_stop_route:
app.add_route("/_stop", stop_route, methods=["POST"])