From 064965c4660f57f24e2d51a9854defaeabf8c0cf Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 5 Sep 2022 19:37:11 +0300 Subject: added --listen option to make gradio listen on network requests --- modules/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ui.py') diff --git a/modules/ui.py b/modules/ui.py index 0d70529c..ec583d14 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -27,7 +27,7 @@ mimetypes.init() mimetypes.add_type('application/javascript', '.js') -if not cmd_opts.share: +if not cmd_opts.share and not cmd_opts.listen: # fix gradio phoning home gradio.utils.version_check = lambda: None gradio.utils.get_local_ip_address = lambda: '127.0.0.1' -- cgit v1.2.1