tgxs002 commited on
Commit
5fc2e18
1 Parent(s): d74753c

cache examples

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ with gr.Blocks() as demo:
99
  gr.Markdown('''
100
  ## Example inputs
101
  ''')
102
- examples = gr.Examples(examples=example_list, label="Examples", inputs=[prompt])
103
  button.click(inference, inputs=prompt, outputs=[norm_output, adapted_output])
104
 
105
  demo.queue(concurrency_count=1)
 
99
  gr.Markdown('''
100
  ## Example inputs
101
  ''')
102
+ examples = gr.Examples(examples=example_list, label="Examples", inputs=[prompt], cache_examples=True)
103
  button.click(inference, inputs=prompt, outputs=[norm_output, adapted_output])
104
 
105
  demo.queue(concurrency_count=1)