Spaces:
Running
Running
flow3rdown
commited on
Commit
•
0ce43f5
1
Parent(s):
c7ec500
add more examples
Browse files- .gitattributes +3 -0
- app.py +6 -6
- examples/coffee.jpeg +3 -0
- examples/forest.jpg +3 -0
- examples/inland_lake.png +0 -0
- examples/qinghai_lake.png +0 -0
- examples/tree.jpg +3 -0
- examples/watermelon.jpg +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
examples/root.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
examples/root.jpg filter=lfs diff=lfs merge=lfs -text
|
36 |
+
examples/*.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
examples/*.png filter=lfs diff=lfs merge=lfs -text
|
38 |
+
examples/*.jpeg filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -194,14 +194,14 @@ def single_tab_iit():
|
|
194 |
inputs=[head_image, head_ent, tail_image, tail_ent, question_text, question_ent],
|
195 |
outputs=[output_text])
|
196 |
|
197 |
-
examples=[['examples/
|
198 |
ex = gr.Examples(
|
199 |
examples=examples,
|
200 |
fn=single_inference_iit,
|
201 |
inputs=[head_image, head_ent, tail_image, tail_ent, question_text, question_ent],
|
202 |
outputs=[output_text],
|
203 |
cache_examples=False,
|
204 |
-
run_on_click=
|
205 |
)
|
206 |
|
207 |
def single_tab_tti():
|
@@ -232,7 +232,7 @@ def single_tab_tti():
|
|
232 |
inputs=[head_text, head_ent, tail_text, tail_ent, question_image, question_ent],
|
233 |
outputs=[output_text],
|
234 |
cache_examples=False,
|
235 |
-
run_on_click=
|
236 |
)
|
237 |
|
238 |
def blended_tab_iti():
|
@@ -255,15 +255,15 @@ def blended_tab_iti():
|
|
255 |
submit_btn.click(fn=blended_inference_iti,
|
256 |
inputs=[head_image, head_ent, tail_txt, tail_ent, question_image, question_ent],
|
257 |
outputs=[output_text])
|
258 |
-
|
259 |
-
examples=[['examples/
|
260 |
ex = gr.Examples(
|
261 |
examples=examples,
|
262 |
fn=single_inference_iit,
|
263 |
inputs=[head_image, head_ent, tail_txt, tail_ent, question_image, question_ent],
|
264 |
outputs=[output_text],
|
265 |
cache_examples=False,
|
266 |
-
run_on_click=
|
267 |
)
|
268 |
|
269 |
|
|
|
194 |
inputs=[head_image, head_ent, tail_image, tail_ent, question_text, question_ent],
|
195 |
outputs=[output_text])
|
196 |
|
197 |
+
examples=[['examples/tree.jpg', 'Q10884', 'examples/forest.png', 'Q4421', "Anhui", 'Q40956']]
|
198 |
ex = gr.Examples(
|
199 |
examples=examples,
|
200 |
fn=single_inference_iit,
|
201 |
inputs=[head_image, head_ent, tail_image, tail_ent, question_text, question_ent],
|
202 |
outputs=[output_text],
|
203 |
cache_examples=False,
|
204 |
+
run_on_click=False
|
205 |
)
|
206 |
|
207 |
def single_tab_tti():
|
|
|
232 |
inputs=[head_text, head_ent, tail_text, tail_ent, question_image, question_ent],
|
233 |
outputs=[output_text],
|
234 |
cache_examples=False,
|
235 |
+
run_on_click=False
|
236 |
)
|
237 |
|
238 |
def blended_tab_iti():
|
|
|
255 |
submit_btn.click(fn=blended_inference_iti,
|
256 |
inputs=[head_image, head_ent, tail_txt, tail_ent, question_image, question_ent],
|
257 |
outputs=[output_text])
|
258 |
+
|
259 |
+
examples=[['examples/watermelon.jpg', 'Q38645', 'fruit', 'Q3314483', 'examples/coffee.jpeg', 'Q8486']]
|
260 |
ex = gr.Examples(
|
261 |
examples=examples,
|
262 |
fn=single_inference_iit,
|
263 |
inputs=[head_image, head_ent, tail_txt, tail_ent, question_image, question_ent],
|
264 |
outputs=[output_text],
|
265 |
cache_examples=False,
|
266 |
+
run_on_click=False
|
267 |
)
|
268 |
|
269 |
|
examples/coffee.jpeg
ADDED
Git LFS Details
|
examples/forest.jpg
ADDED
Git LFS Details
|
examples/inland_lake.png
DELETED
Binary file (716 kB)
|
|
examples/qinghai_lake.png
DELETED
Binary file (492 kB)
|
|
examples/tree.jpg
ADDED
Git LFS Details
|
examples/watermelon.jpg
ADDED
Git LFS Details
|