Vincentqyw commited on
Commit
e054474
1 Parent(s): a443266

update: app

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -79,7 +79,7 @@ def ui_reset_state(*args):
79
 
80
 
81
  # "footer {visibility: hidden}"
82
- def run(server_name="127.0.0.1", server_port=7860):
83
  """
84
  Runs the application.
85
 
@@ -329,7 +329,9 @@ def run(server_name="127.0.0.1", server_port=7860):
329
  ],
330
  outputs=[output_wrapped, geometry_result],
331
  )
332
- app.queue().launch(share=False)
 
 
333
 
334
 
335
  if __name__ == "__main__":
@@ -337,7 +339,7 @@ if __name__ == "__main__":
337
  parser.add_argument(
338
  "--server_name",
339
  type=str,
340
- default="127.0.0.1",
341
  help="server name",
342
  )
343
  parser.add_argument(
 
79
 
80
 
81
  # "footer {visibility: hidden}"
82
+ def run(server_name="0.0.0.0", server_port=7860):
83
  """
84
  Runs the application.
85
 
 
329
  ],
330
  outputs=[output_wrapped, geometry_result],
331
  )
332
+ app.queue().launch(
333
+ server_name=server_name, server_port=server_port, share=False
334
+ )
335
 
336
 
337
  if __name__ == "__main__":
 
339
  parser.add_argument(
340
  "--server_name",
341
  type=str,
342
+ default="0.0.0.0",
343
  help="server name",
344
  )
345
  parser.add_argument(