jiayong commited on
Commit
3484650
1 Parent(s): d8acb27

Update app.py

Browse files

update server_port

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -458,9 +458,9 @@ with gr.Blocks(title = "追影",
458
 
459
  # concurrency_count concurrency_limit max_threads
460
  demo.queue(api_open=False, max_size=1000).launch(
461
- server_name="0.0.0.0" if os.getenv('GRADIO_LISTEN', '') != '' else "127.0.0.1",
462
- share=False,
463
- server_port=7861,
464
  root_path=f"/{os.getenv('GRADIO_PROXY_PATH')}" if os.getenv('GRADIO_PROXY_PATH') else ""
465
  )
466
 
 
458
 
459
  # concurrency_count concurrency_limit max_threads
460
  demo.queue(api_open=False, max_size=1000).launch(
461
+ server_name="0.0.0.0",
462
+ share=True,
463
+ server_port=7860,
464
  root_path=f"/{os.getenv('GRADIO_PROXY_PATH')}" if os.getenv('GRADIO_PROXY_PATH') else ""
465
  )
466