diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 15:10:05 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 15:10:05 +0300 |
commit | 372a2c3e2e68acb0c457e2fb328ec31eba5677d2 (patch) | |
tree | fa4eab89979da9653116a6346faa5916b02281f0 /webui.py | |
parent | e4f080f61a8002949eb6fef6ade18abee4dcf5fe (diff) |
[Feature Request] Please add "--share-password" for Gradio server security #315
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -115,7 +115,13 @@ def webui(): 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, debug=cmd_opts.gradio_debug)
+ 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,
+ auth=(cmd_opts.gradio_username, cmd_opts.gradio_password) if cmd_opts.gradio_password is not None else None,
+ )
if __name__ == "__main__":
|