RamAnanth1 commited on
Commit
60437ff
1 Parent(s): 03fc7e7

Update app.py

Browse files

Cache examples

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -138,7 +138,7 @@ with block:
138
  ips = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold]
139
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
140
 
141
- examples = gr.Examples(examples=[["bird.png", "bird","Canny Edge Map"],["turtle.png", "turtle","Scribble"]],inputs = [input_image, prompt, input_control], outputs = [result_gallery])
142
 
143
 
144
  block.launch(debug = True)
 
138
  ips = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold]
139
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
140
 
141
+ examples = gr.Examples(examples=[["bird.png", "bird","Canny Edge Map"],["turtle.png", "turtle","Scribble"]],inputs = [input_image, prompt, input_control], outputs = [result_gallery], cache_examples = True, fn = process)
142
 
143
 
144
  block.launch(debug = True)