Pierre Chapuis commited on
Commit
664105d
·
unverified ·
1 Parent(s): 3cc3c4d

eager examples caching

Browse files
Files changed (1) hide show
  1. src/app.py +2 -0
src/app.py CHANGED
@@ -246,6 +246,7 @@ with gr.Blocks() as demo:
246
  outputs=[oimg, dlbt],
247
  fn=process_prompt,
248
  cache_examples=True,
 
249
  )
250
 
251
  with gr.Tab("By bounding box", id="tab_bb"):
@@ -298,6 +299,7 @@ with gr.Blocks() as demo:
298
  outputs=[oimg, dlbt],
299
  fn=process_bbox,
300
  cache_examples=True,
 
301
  )
302
 
303
  demo.launch(share=False, ssr_mode=False)
 
246
  outputs=[oimg, dlbt],
247
  fn=process_prompt,
248
  cache_examples=True,
249
+ cache_mode="eager",
250
  )
251
 
252
  with gr.Tab("By bounding box", id="tab_bb"):
 
299
  outputs=[oimg, dlbt],
300
  fn=process_bbox,
301
  cache_examples=True,
302
+ cache_mode="eager",
303
  )
304
 
305
  demo.launch(share=False, ssr_mode=False)