mrfakename commited on
Commit
69bb67a
·
verified ·
1 Parent(s): 41d9278

Add queueing, disable API

Browse files

* Add queuing: helps when there are multiple users using it at once
* Disable API: makes it harder for bots to use the space

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -184,4 +184,4 @@ with gr.Blocks() as demo:
184
  out = gr.Image()
185
  btn.click(fn=create_family_tree, inputs=model_id, outputs=out)
186
 
187
- demo.launch()
 
184
  out = gr.Image()
185
  btn.click(fn=create_family_tree, inputs=model_id, outputs=out)
186
 
187
+ demo.queue(api_open=False).launch(show_api=False)