Spaces:
Running
on
Zero
Running
on
Zero
Swap button and output for image captioning sample
Browse files
app.py
CHANGED
|
@@ -41,8 +41,8 @@ class App:
|
|
| 41 |
inputs=image_to_text_url_input,
|
| 42 |
outputs=image_to_text_image_input
|
| 43 |
)
|
| 44 |
-
image_to_text_output = gr.List(label="Captions", headers=["Caption"])
|
| 45 |
image_to_text_button = gr.Button("Caption")
|
|
|
|
| 46 |
image_to_text_button.click(
|
| 47 |
fn=image_to_text,
|
| 48 |
inputs=image_to_text_image_input,
|
|
|
|
| 41 |
inputs=image_to_text_url_input,
|
| 42 |
outputs=image_to_text_image_input
|
| 43 |
)
|
|
|
|
| 44 |
image_to_text_button = gr.Button("Caption")
|
| 45 |
+
image_to_text_output = gr.List(label="Captions", headers=["Caption"])
|
| 46 |
image_to_text_button.click(
|
| 47 |
fn=image_to_text,
|
| 48 |
inputs=image_to_text_image_input,
|