multimodalart HF staff commited on
Commit
2bf3a85
1 Parent(s): 7c40d47

lazy caching to avoid errors

Browse files

Lazy caching caches the first example during runtime

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -134,7 +134,7 @@ def app():
134
  iou_threshold,
135
  ],
136
  outputs=[output_image],
137
- cache_examples=True,
138
  )
139
 
140
  gradio_app = gr.Blocks()
 
134
  iou_threshold,
135
  ],
136
  outputs=[output_image],
137
+ cache_examples="lazy",
138
  )
139
 
140
  gradio_app = gr.Blocks()