diff --git a/modules/shared.py b/modules/shared.py index 387a1f6..5eceddd 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):