Pharma abidlabs HF staff commited on
Commit
f231752
1 Parent(s): 57c304a

Suggestion to set max queue size (#6)

Browse files

- Update app.py (b0405898a220cae22e78f0b9616e789aa0c462e5)


Co-authored-by: Abubakar Abid <abidlabs@users.noreply.huggingface.co>

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()