benibraz commited on
Commit
21ee4dd
1 Parent(s): 457544c

Update iface.queue launch parameters to disable API exposure and hide API documentation for improved security

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -590,4 +590,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
590
  )
591
 
592
  if __name__ == "__main__":
593
- iface.queue(max_size=64, default_concurrency_limit=1).launch(share=True)
 
 
 
590
  )
591
 
592
  if __name__ == "__main__":
593
+ iface.queue(max_size=64, default_concurrency_limit=1, api_open=False).launch(
594
+ share=True, show_api=False
595
+ )