Spaces:
Running
on
A10G
Running
on
A10G
Suggestion to set max queue size (#6)
Browse files- Update app.py (b0405898a220cae22e78f0b9616e789aa0c462e5)
Co-authored-by: Abubakar Abid <abidlabs@users.noreply.huggingface.co>
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 |
-
)
|
|
|
|
|
|
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()
|