xianbao HF staff commited on
Commit
732a56a
1 Parent(s): 4e176ff

Update app.py

Browse files

Listen to 0.0.0.0:7860 so that the app can start

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -455,7 +455,7 @@ with block:
455
 
456
 
457
  block.launch(
458
- server_name='0.0.0.0' if os.getenv('GRADIO_LISTEN', '') != '' else "127.0.0.1",
459
  share=False,
460
  root_path=f"/{os.getenv('GRADIO_PROXY_PATH')}" if os.getenv('GRADIO_PROXY_PATH') else ""
461
  )
 
455
 
456
 
457
  block.launch(
458
+ server_name='0.0.0.0', #if os.getenv('GRADIO_LISTEN', '') != '' else "127.0.0.1",
459
  share=False,
460
  root_path=f"/{os.getenv('GRADIO_PROXY_PATH')}" if os.getenv('GRADIO_PROXY_PATH') else ""
461
  )