flow3rdown commited on
Commit
0ce43f5
1 Parent(s): c7ec500

add more examples

Browse files
.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/qinghai_lake.png', 'Q201294', 'examples/inland_lake.png', 'Q31805992', "campaign", 'Q18812548']]
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=True
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=True
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/qinghai_lake.png', 'Q201294', 'inland_lake', 'Q31805992', 'examples/inland_lake.png', 'Q18812548']]
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=True
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

  • SHA256: 5ef87fa7ea28c47483e742c04393917b78b1c0f007d1627b9e2dcfcda1615520
  • Pointer size: 131 Bytes
  • Size of remote file: 230 kB
examples/forest.jpg ADDED

Git LFS Details

  • SHA256: 76d9cfaec16911e1bce492b3784fa90042c62e829c40a88120fd0d4ad2373253
  • Pointer size: 132 Bytes
  • Size of remote file: 5.46 MB
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

  • SHA256: 5542b1e30a6677a897dd34ec9c9a85c7096325310240f533c1cc12c2cad56939
  • Pointer size: 132 Bytes
  • Size of remote file: 1.01 MB
examples/watermelon.jpg ADDED

Git LFS Details

  • SHA256: 355b3538ad28ec8f1c5883aa637c9a7aa5fed4fc0d40b41c8350d686d4ec3b77
  • Pointer size: 131 Bytes
  • Size of remote file: 182 kB