qubvel-hf HF staff commited on
Commit
20de702
1 Parent(s): 42ade60
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -143,7 +143,10 @@ with gr.Blocks(css=css) as demo:
143
  example_files = os.listdir('assets/examples')
144
  example_files.sort()
145
  example_files = [os.path.join('assets/examples', filename) for filename in example_files]
146
- examples = gr.Examples(examples=example_files, inputs=[input_image], outputs=[depth_image_slider], fn=on_submit)
 
 
 
147
 
148
 
149
  if __name__ == '__main__':
 
143
  example_files = os.listdir('assets/examples')
144
  example_files.sort()
145
  example_files = [os.path.join('assets/examples', filename) for filename in example_files]
146
+ examples = gr.Examples(
147
+ examples=example_files, inputs=[input_image, model_select_v1, model_select_v2],
148
+ outputs=[depth_image_slider], fn=on_submit, cache_examples="lazy",
149
+ )
150
 
151
 
152
  if __name__ == '__main__':