shikunl commited on
Commit
33747ca
β€’
1 Parent(s): 6b33029

Update with md5sum and half precision inference

Browse files
Files changed (2) hide show
  1. app_caption.py +1 -2
  2. app_vqa.py +1 -2
app_caption.py CHANGED
@@ -37,8 +37,7 @@ def create_demo() -> gr.Blocks:
37
  gr.Examples(examples=examples,
38
  inputs=inputs,
39
  outputs=outputs,
40
- fn=model.run_caption,
41
- cache_examples=os.getenv('SYSTEM') == 'spaces')
42
 
43
  run_button.click(fn=model.run_caption, inputs=inputs, outputs=outputs)
44
  return demo
 
37
  gr.Examples(examples=examples,
38
  inputs=inputs,
39
  outputs=outputs,
40
+ fn=model.run_caption)
 
41
 
42
  run_button.click(fn=model.run_caption, inputs=inputs, outputs=outputs)
43
  return demo
app_vqa.py CHANGED
@@ -42,8 +42,7 @@ def create_demo() -> gr.Blocks:
42
  gr.Examples(examples=examples,
43
  inputs=inputs,
44
  outputs=outputs,
45
- fn=model.run_vqa,
46
- cache_examples=os.getenv('SYSTEM') == 'spaces')
47
 
48
  run_button.click(fn=model.run_vqa, inputs=inputs, outputs=outputs)
49
  return demo
 
42
  gr.Examples(examples=examples,
43
  inputs=inputs,
44
  outputs=outputs,
45
+ fn=model.run_vqa)
 
46
 
47
  run_button.click(fn=model.run_vqa, inputs=inputs, outputs=outputs)
48
  return demo