showgan commited on
Commit
baf4ea1
·
1 Parent(s): 9b31078
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -261,7 +261,7 @@ def main():
261
 
262
  hostname = (([ip for ip in socket.gethostbyname_ex(socket.gethostname())[2]if not ip.startswith("127.")] or [[(s.connect(("8.8.8.8", 53)), s.getsockname()[0], s.close()) for s in [socket.socket(socket.AF_INET, socket.SOCK_DGRAM)]][0][1]]) + ["no IP found"])[0]
263
  print(f'-D- Hostname: {hostname}')
264
- # app.launch(server_name=hostname, server_port=6012, share=True)
265
  app.launch(server_name=hostname, share=True)
266
  exit(0)
267
 
 
261
 
262
  hostname = (([ip for ip in socket.gethostbyname_ex(socket.gethostname())[2]if not ip.startswith("127.")] or [[(s.connect(("8.8.8.8", 53)), s.getsockname()[0], s.close()) for s in [socket.socket(socket.AF_INET, socket.SOCK_DGRAM)]][0][1]]) + ["no IP found"])[0]
263
  print(f'-D- Hostname: {hostname}')
264
+ # app.launch(server_name=hostname, server_port=6012, share=False)
265
  app.launch(server_name=hostname, share=True)
266
  exit(0)
267