Spaces:
Running
on
A10G
Running
on
A10G
Shanshan Wang
commited on
Commit
•
123a59c
1
Parent(s):
80d1b7a
update
Browse files
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(
|
367 |
-
|
368 |
-
return image_value, user_input_value,
|
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(
|