freQuensy23 Fabrice-TIERCELIN commited on
Commit
78852a0
1 Parent(s): 264c9fe

This PR only caches examples on demand to avoid startup crash (#3)

Browse files

- This PR only caches examples on demand to avoid startup crash (6fb17c8ec6d1c466d9b2dddfaa61a7456ef70f09)


Co-authored-by: Fabrice TIERCELIN <[email protected]>

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(