Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -60,7 +60,7 @@ examples = [["cat.jpg"], ["dog.jpg"], ["horse.jpg"]]
|
|
60 |
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")]
|
61 |
|
62 |
title = "Image to Text : Multiple Models"
|
63 |
-
description = "Gradio Demo
|
64 |
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>"
|
65 |
|
66 |
iface = gr.Interface(fn=generate_captions,
|
|
|
60 |
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")]
|
61 |
|
62 |
title = "Image to Text : Multiple Models"
|
63 |
+
description = "Explore the Gradio Demo for comparing three state-of-the-art vision+language models: GIT, BLIP, and ViT+GPT2. To use the demo, upload your image and click 'submit,' or choose from the provided examples."
|
64 |
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>"
|
65 |
|
66 |
iface = gr.Interface(fn=generate_captions,
|