Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ with gr.Blocks() as demo:
|
|
32 |
|
33 |
with gr.Row():
|
34 |
sample_images = [
|
35 |
-
|
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.
|
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()
|