orrinin commited on
Commit
35c1d6a
·
verified ·
1 Parent(s): e4c8169

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -140,7 +140,7 @@ with gr.Blocks(theme='shivi/calm_seafoam', css=css, title="知觉demo") as iface
140
 
141
  # Set up the event listeners
142
  submit_btn.click(main, inputs=[text_input, image_input, unit], outputs=output_box)
143
- gr.Examples(EXAMPLES, [image_input, text_input])
144
  gr.Markdown(LICENSE)
145
 
146
  #gr.close_all()
 
140
 
141
  # Set up the event listeners
142
  submit_btn.click(main, inputs=[text_input, image_input, unit], outputs=output_box)
143
+ gr.Examples(fn=main, examples=EXAMPLES, inputs=[image_input, text_input], outputs=output_box, cache_examples="lazy")
144
  gr.Markdown(LICENSE)
145
 
146
  #gr.close_all()