Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,5 +30,12 @@ title = "Interactive demo: ViLT"
|
|
30 |
description = "Gradio Demo for Vision and Language Transformer (ViLT) model fine-tuned on VQAv2 To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."
|
31 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2102.03334' target='_blank'>ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision</a> | <a href='https://github.com/dandelin/ViLT' target='_blank'>Github Repo</a></p>"
|
32 |
|
33 |
-
interface = gr.Interface(fn=answer_question,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
interface.launch(debug=True)
|
|
|
30 |
description = "Gradio Demo for Vision and Language Transformer (ViLT) model fine-tuned on VQAv2 To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."
|
31 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2102.03334' target='_blank'>ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision</a> | <a href='https://github.com/dandelin/ViLT' target='_blank'>Github Repo</a></p>"
|
32 |
|
33 |
+
interface = gr.Interface(fn=answer_question,
|
34 |
+
inputs=[image, question],
|
35 |
+
outputs=answer,
|
36 |
+
examples=examples,
|
37 |
+
title=title,
|
38 |
+
description=description,
|
39 |
+
article=article,
|
40 |
+
enable_queue=True)
|
41 |
interface.launch(debug=True)
|