Dongxu Li commited on
Commit
b16b08b
1 Parent(s): 2f30c0e

try queuing for inference only.

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -207,6 +207,7 @@ with gr.Blocks(
207
  rep_penalty,
208
  ],
209
  [caption_output],
 
210
  )
211
 
212
  gr.Markdown("""Trying prompting your input for chat; e.g. example prompt for QA, \"Question: {} Answer:\"""")
@@ -233,6 +234,7 @@ with gr.Blocks(
233
  state,
234
  ],
235
  [chatbot, state],
 
236
  )
237
 
238
  with gr.Row():
@@ -272,4 +274,4 @@ with gr.Blocks(
272
  )
273
 
274
  iface.queue(concurrency_count=1, api_open=False, max_size=10)
275
- iface.launch(enable_queue=True)
 
207
  rep_penalty,
208
  ],
209
  [caption_output],
210
+ queue=True,
211
  )
212
 
213
  gr.Markdown("""Trying prompting your input for chat; e.g. example prompt for QA, \"Question: {} Answer:\"""")
 
234
  state,
235
  ],
236
  [chatbot, state],
237
+ queue=True,
238
  )
239
 
240
  with gr.Row():
 
274
  )
275
 
276
  iface.queue(concurrency_count=1, api_open=False, max_size=10)
277
+ iface.launch(enable_queue=False)