Suggestion to set max queue size

#6
by abidlabs HF staff - opened
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -233,11 +233,13 @@ and check out more tools at my
233
  </p>
234
  """
235
 
236
- gr.Interface(
237
  inference,
238
  inputs,
239
  outputs,
240
  title=title, description=description,
241
  article=article,
242
  examples=[['example01.jpg'], ['example02.jpg']]
243
- ).launch(enable_queue=True)
 
 
 
233
  </p>
234
  """
235
 
236
+ io = gr.Interface(
237
  inference,
238
  inputs,
239
  outputs,
240
  title=title, description=description,
241
  article=article,
242
  examples=[['example01.jpg'], ['example02.jpg']]
243
+ )
244
+ io.queue(max_size=15)
245
+ io.launch()