root commited on
Commit
b9e7cf7
1 Parent(s): 0baea79

update example to run on click

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -231,6 +231,7 @@ with gr.Blocks() as iface:
231
  examples = gr.Examples(
232
  examples=examples,
233
  inputs=[image_input, chat_input, sampling, temperature, len_penalty, rep_penalty, state],
 
234
  run_on_click=True,
235
  fn = inference_chat,
236
  )
 
231
  examples = gr.Examples(
232
  examples=examples,
233
  inputs=[image_input, chat_input, sampling, temperature, len_penalty, rep_penalty, state],
234
+ outputs=[chatbot, state],
235
  run_on_click=True,
236
  fn = inference_chat,
237
  )