Spaces:
Runtime error
Runtime error
JustinLin610
commited on
Commit
•
77c5341
1
Parent(s):
7e8b986
update
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ description = "Gradio Demo for OFA-Image_Caption. Upload your own image or click
|
|
116 |
"\"Submit\" and then wait for the generated caption. "
|
117 |
article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
|
118 |
"Repo</a></p> "
|
119 |
-
examples = [['beatles.jpeg'], ['aurora.jpeg'], ['good_luck.png'], ['pokemon.jpeg'], ['
|
120 |
io = gr.Interface(fn=image_caption, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Textbox(label="Caption"),
|
121 |
title=title, description=description, article=article, examples=examples,
|
122 |
allow_flagging=False, allow_screenshot=False)
|
|
|
116 |
"\"Submit\" and then wait for the generated caption. "
|
117 |
article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
|
118 |
"Repo</a></p> "
|
119 |
+
examples = [['beatles.jpeg'], ['aurora.jpeg'], ['good_luck.png'], ['pokemon.jpeg'], ['wedding.JPG']]
|
120 |
io = gr.Interface(fn=image_caption, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Textbox(label="Caption"),
|
121 |
title=title, description=description, article=article, examples=examples,
|
122 |
allow_flagging=False, allow_screenshot=False)
|