LiheYoung commited on
Commit
643c2b0
1 Parent(s): ac03dbc

enable cache_example for A10G

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ with gr.Blocks(css=css) as demo:
91
  example_files = os.listdir('examples')
92
  example_files.sort()
93
  example_files = [os.path.join('examples', filename) for filename in example_files]
94
- examples = gr.Examples(examples=example_files, inputs=[input_image], outputs=[depth_image_slider, raw_file], fn=on_submit, cache_examples=False)
95
 
96
 
97
  if __name__ == '__main__':
 
91
  example_files = os.listdir('examples')
92
  example_files.sort()
93
  example_files = [os.path.join('examples', filename) for filename in example_files]
94
+ examples = gr.Examples(examples=example_files, inputs=[input_image], outputs=[depth_image_slider, raw_file], fn=on_submit, cache_examples=True)
95
 
96
 
97
  if __name__ == '__main__':