Shanshan Wang commited on
Commit
123a59c
1 Parent(s): 80d1b7a
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -363,9 +363,9 @@ with gr.Blocks() as demo:
363
  outputs=[chatbot, state, image_input, user_input]
364
  )
365
 
366
- def example_clicked(example):
367
- image_value, user_input_value = example
368
- return image_value, user_input_value, [], None # Reset chatbot and state
369
 
370
 
371
  gr.Examples(
 
363
  outputs=[chatbot, state, image_input, user_input]
364
  )
365
 
366
+ def example_clicked(image_value, user_input_value):
367
+ chatbot_value, state_value = [], None
368
+ return image_value, user_input_value, chatbot_value, state_value # Reset chatbot and state
369
 
370
 
371
  gr.Examples(