multimodalart HF staff commited on
Commit
e9adc70
1 Parent(s): 69db3a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -331,12 +331,12 @@ with block:
331
  randomize=True,
332
  )
333
 
334
- ex = gr.Examples(examples=examples, fn=infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=False)
335
  ex.dataset.headers = [""]
336
 
337
 
338
- text.submit(infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], _postprocess=False)
339
- btn.click(infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], _postprocess=False)
340
 
341
  advanced_button.click(
342
  None,
 
331
  randomize=True,
332
  )
333
 
334
+ ex = gr.Examples(examples=examples, fn=infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=True)
335
  ex.dataset.headers = [""]
336
 
337
 
338
+ text.submit(infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], postprocess=False)
339
+ btn.click(infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], postprocess=False)
340
 
341
  advanced_button.click(
342
  None,