diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-05 19:37:11 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-05 19:37:11 +0300 |
commit | 064965c4660f57f24e2d51a9854defaeabf8c0cf (patch) | |
tree | a4f1a1cbe2a301ec3dde5d1231d7e1e124bbda70 /modules/shared.py | |
parent | 5bb69bd915ff16fe233f887dba8c9ae8502d08d9 (diff) |
added --listen option to make gradio listen on network requests
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 9e744f6c..70946fea 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -30,6 +30,7 @@ parser.add_argument("--precision", type=str, help="evaluate at this precision", parser.add_argument("--share", action='store_true', help="use share=True for gradio and make the UI accessible through their site (doesn't work for me but you might have better luck)")
parser.add_argument("--esrgan-models-path", type=str, help="path to directory with ESRGAN models", default=os.path.join(script_path, 'ESRGAN'))
parser.add_argument("--opt-split-attention", action='store_true', help="enable optimization that reduced vram usage by a lot for about 10% decrease in performance")
+parser.add_argument("--listen", action='store_true', help="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests")
cmd_opts = parser.parse_args()
cpu = torch.device("cpu")
|