qubvel-hf HF staff commited on
Commit
328661a
1 Parent(s): e7c7d09

Add example

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -42,5 +42,15 @@ with gr.Blocks() as demo:
42
  button.click(
43
  run_tasks, inputs=[input_image, task], outputs=[output_image]
44
  )
 
 
 
 
 
 
 
 
 
 
45
 
46
  demo.launch()
 
42
  button.click(
43
  run_tasks, inputs=[input_image, task], outputs=[output_image]
44
  )
45
+
46
+ gr.Examples(
47
+ examples=[
48
+ ["input/for_debluring.png", ["deblurring"]],
49
+ ],
50
+ inputs=[input_image, task],
51
+ outputs=[output_image],
52
+ fn=run_tasks,
53
+ cache_examples="lazy",
54
+ )
55
 
56
  demo.launch()