Jyothirmai commited on
Commit
478c334
·
verified ·
1 Parent(s): 918ffea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ with gr.Blocks() as demo:
32
 
33
  with gr.Row():
34
  sample_images = [
35
- 'https://imgur.com/W1pIr9b',
36
  'https://imgur.com/MLJaWnf',
37
  'https://imgur.com/6XymFW1',
38
  'https://imgur.com/zdPjZZ1',
@@ -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.change(predict, [sample_images_gallery, model_choice, max_tokens, temperature], caption)
77
 
78
 
79
  demo.launch()
 
32
 
33
  with gr.Row():
34
  sample_images = [
35
+ "https://imgur.com/W1pIr9b",
36
  'https://imgur.com/MLJaWnf',
37
  'https://imgur.com/6XymFW1',
38
  'https://imgur.com/zdPjZZ1',
 
73
 
74
  # Event handlers
75
  generate_button.click(predict, [image, model_choice, max_tokens, temperature], caption)
76
+ sample_images_gallery.select(predict, [sample_images_gallery, model_choice, max_tokens, temperature], caption)
77
 
78
 
79
  demo.launch()