yansong1616 commited on
Commit
fc5ea9d
1 Parent(s): 5747970

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def get_args_parser():
63
  parser_url = parser.add_mutually_exclusive_group()
64
  parser_url.add_argument("--local_network", action='store_true', default=False,
65
  help="make app accessible on local network: address will be set to 0.0.0.0")
66
- parser_url.add_argument("--server_name", type=str, default=None, help="server url, default is 127.0.0.1")
67
  parser.add_argument("--image_size", type=int, default=512, choices=[512, 224], help="image size")
68
  parser.add_argument("--server_port", type=int, help=("will start gradio app on this port (if available). "
69
  "If None, will search for an available port starting at 7860."),
 
63
  parser_url = parser.add_mutually_exclusive_group()
64
  parser_url.add_argument("--local_network", action='store_true', default=False,
65
  help="make app accessible on local network: address will be set to 0.0.0.0")
66
+ parser_url.add_argument("--server_name", type=str, default="0.0.0.0", help="server url, default is 127.0.0.1")
67
  parser.add_argument("--image_size", type=int, default=512, choices=[512, 224], help="image size")
68
  parser.add_argument("--server_port", type=int, help=("will start gradio app on this port (if available). "
69
  "If None, will search for an available port starting at 7860."),