gokaygokay commited on
Commit
ee3e703
1 Parent(s): 81d3ccd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -216,6 +216,19 @@ with gr.Blocks() as demo:
216
  hdr = gr.Slider(minimum=0, maximum=1, value=0, step=0.1, label="HDR Effect")
217
  guidance_scale = gr.Slider(minimum=0, maximum=20, value=3, step=0.5, label="Guidance Scale")
218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  run_button.click(fn=gradio_process_image,
220
  inputs=[input_image, resolution, num_inference_steps, strength, hdr, guidance_scale],
221
  outputs=output_image)
 
216
  hdr = gr.Slider(minimum=0, maximum=1, value=0, step=0.1, label="HDR Effect")
217
  guidance_scale = gr.Slider(minimum=0, maximum=20, value=3, step=0.5, label="Guidance Scale")
218
 
219
+ # Add examples
220
+ gr.Examples(
221
+ examples=[
222
+ ["image1.jpg"],
223
+ ["image2.png"],
224
+ ["image3.png"],
225
+ ],
226
+ inputs=[input_image],
227
+ outputs=[output_image],
228
+ fn=gradio_process_image,
229
+ cache_examples=True,
230
+ )
231
+
232
  run_button.click(fn=gradio_process_image,
233
  inputs=[input_image, resolution, num_inference_steps, strength, hdr, guidance_scale],
234
  outputs=output_image)