hysts HF staff commited on
Commit
3930ec3
1 Parent(s): 4bb0120

stop caching examples (#4)

Browse files

- revert caching examples (091a1544c5450c0be4c0cdecee86ec71169f6d35)

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