Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def generate_answers(image, question):
|
|
80 |
return answer_git_base, answer_git_large, answer_blip_base, answer_blip_large, answer_vilt
|
81 |
|
82 |
|
83 |
-
examples = [["cats.jpg"], ["stop_sign.png"], ["astronaut.jpg"]]
|
84 |
outputs = [gr.outputs.Textbox(label="Answer generated by GIT-base"), gr.outputs.Textbox(label="Answer generated by GIT-large"), gr.outputs.Textbox(label="Answer generated by BLIP-base"), gr.outputs.Textbox(label="Answer generated by BLIP-large"), gr.outputs.Textbox(label="Answer generated by ViLT")]
|
85 |
|
86 |
title = "Interactive demo: comparing visual question answering (VQA) models"
|
|
|
80 |
return answer_git_base, answer_git_large, answer_blip_base, answer_blip_large, answer_vilt
|
81 |
|
82 |
|
83 |
+
examples = [["cats.jpg", "How many cats are there?"], ["stop_sign.png", "What's behind the stop sign?"], ["astronaut.jpg", "What's the astronaut riding on?"]]
|
84 |
outputs = [gr.outputs.Textbox(label="Answer generated by GIT-base"), gr.outputs.Textbox(label="Answer generated by GIT-large"), gr.outputs.Textbox(label="Answer generated by BLIP-base"), gr.outputs.Textbox(label="Answer generated by BLIP-large"), gr.outputs.Textbox(label="Answer generated by ViLT")]
|
85 |
|
86 |
title = "Interactive demo: comparing visual question answering (VQA) models"
|