ysharma HF staff commited on
Commit
adfe8c0
1 Parent(s): 6c57ace

updated app.py

Browse files

commented the server name information etc. as it is not needed while hosting on Spaces

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -394,8 +394,8 @@ with block:
394
  run_edit.click(fn=process, inputs=[gr.State('edit')] + ips, outputs=[result_gallery, result_info])
395
 
396
  block.launch(
397
- server_name='0.0.0.0' if os.getenv('GRADIO_LISTEN', '') != '' else "127.0.0.1",
398
- share=False,
399
  root_path=f"/{os.getenv('GRADIO_PROXY_PATH')}" if os.getenv('GRADIO_PROXY_PATH') else ""
400
  )
401
  # block.launch(server_name='0.0.0.0')
 
394
  run_edit.click(fn=process, inputs=[gr.State('edit')] + ips, outputs=[result_gallery, result_info])
395
 
396
  block.launch(
397
+ #server_name='0.0.0.0' if os.getenv('GRADIO_LISTEN', '') != '' else "127.0.0.1",
398
+ #share=False,
399
  root_path=f"/{os.getenv('GRADIO_PROXY_PATH')}" if os.getenv('GRADIO_PROXY_PATH') else ""
400
  )
401
  # block.launch(server_name='0.0.0.0')