From 7f1460af294dd8820494831b2de21ca7087d3a41 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:07:22 -0700 Subject: [PATCH] Change a warning --- modules/shared.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/shared.py b/modules/shared.py index 387a1f6b..5eceddd1 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -202,6 +202,8 @@ if args.share: logger.warning("The gradio \"share link\" feature uses a proprietary executable to create a reverse tunnel. Use it with care.") if args.multi_user: logger.warning("The multi-user mode is highly experimental. DO NOT EXPOSE IT TO THE INTERNET.") +if any((args.listen, args.share)) and not any((args.gradio_auth, args.gradio_auth_path)): + logger.warning("\nYou are potentially exposing the web UI to the internet without any access password.\nYou can create one with the \"--gradio-auth\" flag like this: --gradio-auth username:password (replace username:password with your own).") def fix_loader_name(name):