Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,12 +67,12 @@ question = gr.inputs.Textbox(label="Question")
|
|
67 |
answer = gr.outputs.Textbox(label="Predicted answer")
|
68 |
examples = [["apple.jpg", "Qu'est-ce que c'est dans ma main?"], ["cats.jpg", "What are the cats doing?"]]
|
69 |
|
70 |
-
|
71 |
inputs=[image, question],
|
72 |
outputs="text",
|
73 |
examples=examples,
|
74 |
title=title,
|
75 |
description=description,
|
76 |
-
article=article
|
77 |
-
|
78 |
-
|
|
|
67 |
answer = gr.outputs.Textbox(label="Predicted answer")
|
68 |
examples = [["apple.jpg", "Qu'est-ce que c'est dans ma main?"], ["cats.jpg", "What are the cats doing?"]]
|
69 |
|
70 |
+
demo = gr.Interface(fn=vqa_main,
|
71 |
inputs=[image, question],
|
72 |
outputs="text",
|
73 |
examples=examples,
|
74 |
title=title,
|
75 |
description=description,
|
76 |
+
article=article)
|
77 |
+
demo.queue(concurrency_count=2)
|
78 |
+
demo.launch(debug=True, show_error = True)
|