Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -58,7 +58,7 @@ def generate_captions(image):
|
|
58 |
return caption_git_base, caption_git_large, caption_blip_base, caption_blip_large, caption_vitgpt
|
59 |
|
60 |
|
61 |
-
|
62 |
outputs = [gr.outputs.Textbox(label="Caption generated by GIT-base"), gr.outputs.Textbox(label="Caption generated by GIT-large"), gr.outputs.Textbox(label="Caption generated by BLIP-base"), gr.outputs.Textbox(label="Caption generated by BLIP-large"), gr.outputs.Textbox(label="Caption generated by ViT+GPT-2")]
|
63 |
|
64 |
title = "Interactive demo: comparing image captioning models"
|
|
|
58 |
return caption_git_base, caption_git_large, caption_blip_base, caption_blip_large, caption_vitgpt
|
59 |
|
60 |
|
61 |
+
examples = [["cat.jpg"], ["dog.jpg"], ["horse.jpg"]]
|
62 |
outputs = [gr.outputs.Textbox(label="Caption generated by GIT-base"), gr.outputs.Textbox(label="Caption generated by GIT-large"), gr.outputs.Textbox(label="Caption generated by BLIP-base"), gr.outputs.Textbox(label="Caption generated by BLIP-large"), gr.outputs.Textbox(label="Caption generated by ViT+GPT-2")]
|
63 |
|
64 |
title = "Interactive demo: comparing image captioning models"
|