Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,9 +71,9 @@ torch.hub.download_url_to_file('http://farm3.staticflickr.com/2710/4520550856_7a
|
|
71 |
torch.hub.download_url_to_file('http://images.cocodataset.org/val2017/000000039769.jpg', 'cats.jpg')
|
72 |
|
73 |
# Define home page variables
|
74 |
-
image = gr.
|
75 |
-
question = gr.
|
76 |
-
answer = gr.
|
77 |
examples = [["apple.jpg", "Qu'est-ce que c'est dans ma main?"], ["cats.jpg", "What are the cats doing?"]]
|
78 |
|
79 |
demo = gr.Interface(fn=vqa_main,
|
|
|
71 |
torch.hub.download_url_to_file('http://images.cocodataset.org/val2017/000000039769.jpg', 'cats.jpg')
|
72 |
|
73 |
# Define home page variables
|
74 |
+
image = gr.Image(type="pil")
|
75 |
+
question = gr.Textbox(label="Question")
|
76 |
+
answer = gr.Textbox(label="Predicted answer")
|
77 |
examples = [["apple.jpg", "Qu'est-ce que c'est dans ma main?"], ["cats.jpg", "What are the cats doing?"]]
|
78 |
|
79 |
demo = gr.Interface(fn=vqa_main,
|