LiKenun commited on
Commit
33ec230
·
1 Parent(s): 1509884

Swap button and output for image captioning sample

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,