Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ with gr.Blocks() as demo:
|
|
73 |
|
74 |
# Event handlers
|
75 |
generate_button.click(predict, [image, model_choice, max_tokens, temperature], caption)
|
76 |
-
sample_images_gallery.
|
77 |
|
78 |
|
79 |
demo.launch()
|
|
|
73 |
|
74 |
# Event handlers
|
75 |
generate_button.click(predict, [image, model_choice, max_tokens, temperature], caption)
|
76 |
+
sample_images_gallery.change(predict, [sample_images_gallery, model_choice, max_tokens, temperature], caption)
|
77 |
|
78 |
|
79 |
demo.launch()
|