Spaces:
Runtime error
Runtime error
add app
Browse files- .gitignore +2 -0
- app.py +21 -21
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
./log/*
|
2 |
+
__pycache__/
|
app.py
CHANGED
@@ -134,27 +134,27 @@ if __name__ == "__main__":
|
|
134 |
|
135 |
gr.Examples(
|
136 |
[
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
#
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
],
|
159 |
inputs=[image_input, text_input],
|
160 |
outputs=[vqa_output],
|
|
|
134 |
|
135 |
gr.Examples(
|
136 |
[
|
137 |
+
[
|
138 |
+
"./assets/IMG_00095.png",
|
139 |
+
"How many camels are inside this image?",
|
140 |
+
],
|
141 |
+
[
|
142 |
+
"./assets/IMG_00095.png",
|
143 |
+
"How many people are inside this image?",
|
144 |
+
],
|
145 |
+
[
|
146 |
+
"./assets/IMG_00012.png",
|
147 |
+
"How many apples are there?",
|
148 |
+
],
|
149 |
+
# ["./assets/./IMG_00012.png", "How many apples are there? Count them row by row."],
|
150 |
+
[
|
151 |
+
"./assets/IMG_00080.png",
|
152 |
+
"What is this and where is it from?",
|
153 |
+
],
|
154 |
+
[
|
155 |
+
"./assets/IMG_00094.png",
|
156 |
+
"What's important on this website?",
|
157 |
+
],
|
158 |
],
|
159 |
inputs=[image_input, text_input],
|
160 |
outputs=[vqa_output],
|