theQuert commited on
Commit
ce8226f
1 Parent(s): eef2376

Add cache support

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -340,8 +340,8 @@ with gr.Blocks() as demo:
340
  fn=main,
341
  inputs=[input_1, input_2],
342
  outputs=[output_1, output_2],
343
- # cache_examples=True,
344
- # run_on_click=True,
345
  ),
346
  com_1_value, com_2_value = "Pls finish article updating, then click the button above", "Pls finish article updating, then click the button above."
347
  with gr.Tab("Compare between versions"):
 
340
  fn=main,
341
  inputs=[input_1, input_2],
342
  outputs=[output_1, output_2],
343
+ cache_examples=True,
344
+ run_on_click=True,
345
  ),
346
  com_1_value, com_2_value = "Pls finish article updating, then click the button above", "Pls finish article updating, then click the button above."
347
  with gr.Tab("Compare between versions"):