Jyothirmai commited on
Commit
918ffea
·
verified ·
1 Parent(s): 8875dbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.click(predict, [sample_images_gallery, model_choice, max_tokens, temperature], caption)
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()