fangxia commited on
Commit
16e3a48
1 Parent(s): a750521
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -63,8 +63,10 @@ with gr.Blocks(css="style.css") as demo:
63
  )
64
 
65
 
66
- demo.queue(api_open=False).launch(
67
- server_name="0.0.0.0" if os.getenv('GRADIO_LISTEN', '') != '' else "127.0.0.1",
68
- share=False,
 
 
69
  root_path=f"/{os.getenv('GRADIO_PROXY_PATH')}" if os.getenv('GRADIO_PROXY_PATH') else ""
70
  )
 
63
  )
64
 
65
 
66
+ # concurrency_count, concurrency_limit, max_threads
67
+ demo.queue(api_open=False, max_size=1000).launch(
68
+ server_name="0.0.0.0", # if os.getenv('GRADIO_LISTEN', '') != '' else "127.0.0.1",
69
+ share=True,
70
+ server_port=7860,
71
  root_path=f"/{os.getenv('GRADIO_PROXY_PATH')}" if os.getenv('GRADIO_PROXY_PATH') else ""
72
  )