Sunil Surendra Singh commited on
Commit
b6d3b8f
1 Parent(s): 3bb00d2

added caching for examples

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -73,6 +73,7 @@ def create_interface():
73
  inputs=[img, k],
74
  outputs=[landmarks, proba],
75
  elem_id="examples",
 
76
  )
77
  submit_btn.click(
78
  fn=model.predict, inputs=[img, k], outputs=[landmarks, proba, plot]
 
73
  inputs=[img, k],
74
  outputs=[landmarks, proba],
75
  elem_id="examples",
76
+ cache_examples=True,
77
  )
78
  submit_btn.click(
79
  fn=model.predict, inputs=[img, k], outputs=[landmarks, proba, plot]