juancopi81 commited on
Commit
85b8db7
β€’
1 Parent(s): 714a252

Do not cache examples

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -219,7 +219,7 @@ with block as demo:
219
  grid=[2], height="auto"
220
  )
221
 
222
- ex = gr.Examples(examples=examples, fn=infer, inputs=[text], outputs=gallery, cache_examples=True)
223
  ex.dataset.headers = [""]
224
 
225
  text.submit(infer, inputs=[text], outputs=gallery)
 
219
  grid=[2], height="auto"
220
  )
221
 
222
+ ex = gr.Examples(examples=examples, fn=infer, inputs=[text], outputs=gallery, cache_examples=False)
223
  ex.dataset.headers = [""]
224
 
225
  text.submit(infer, inputs=[text], outputs=gallery)