Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,8 @@ examples = [["cats.jpg"], ["stop_sign.png"], ["astronaut.jpg"]]
|
|
61 |
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")]
|
62 |
|
63 |
title = "Interactive demo: comparing image captioning models"
|
64 |
-
description = "Gradio Demo to compare GIT, BLIP and ViT
|
65 |
-
article = "<p style='text-align: center'><a href='https://
|
66 |
|
67 |
interface = gr.Interface(fn=generate_captions,
|
68 |
inputs=gr.inputs.Image(type="pil"),
|
|
|
61 |
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")]
|
62 |
|
63 |
title = "Interactive demo: comparing image captioning models"
|
64 |
+
description = "Gradio Demo to compare GIT, BLIP and ViT+GPT2, 3 state-of-the-art vision+language models. To use it, simply upload your image and click 'submit', or click one of the examples to load them. Read more at the links below."
|
65 |
+
article = "<p style='text-align: center'><a href='https://huggingface.co/docs/transformers/main/model_doc/blip' target='_blank'>BLIP docs</a> | <a href='https://huggingface.co/docs/transformers/main/model_doc/git' target='_blank'>GIT docs</a></p>"
|
66 |
|
67 |
interface = gr.Interface(fn=generate_captions,
|
68 |
inputs=gr.inputs.Image(type="pil"),
|