Fabrice-TIERCELIN commited on
Commit
6fb17c8
1 Parent(s): 264c9fe

This PR only caches examples on demand to avoid startup crash

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -228,7 +228,7 @@ with gr.Blocks() as demo:
228
  output_mask_component
229
  ],
230
  run_on_click=True,
231
- cache_examples=True
232
  )
233
 
234
  submit_button_component.click(
 
228
  output_mask_component
229
  ],
230
  run_on_click=True,
231
+ cache_examples="lazy"
232
  )
233
 
234
  submit_button_component.click(