root commited on
Commit
6fab2c1
·
1 Parent(s): c8765af

cache example

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -231,8 +231,9 @@ with gr.Blocks() as iface:
231
  examples = gr.Examples(
232
  examples=examples,
233
  inputs=[image_input, chat_input],
234
- examples=True,
235
  fn = inference_chat,
 
236
  )
237
 
238
  iface.queue(concurrency_count=1, api_open=False, max_size=10)
 
231
  examples = gr.Examples(
232
  examples=examples,
233
  inputs=[image_input, chat_input],
234
+ cache_examples=True,
235
  fn = inference_chat,
236
+ outputs = [chatbot, state],
237
  )
238
 
239
  iface.queue(concurrency_count=1, api_open=False, max_size=10)