Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -348,4 +348,16 @@ with gr.Blocks() as demo:
|
|
| 348 |
inputs=[input_image, resolution, num_inference_steps, strength, hdr, guidance_scale, controlnet_strength, scheduler_name],
|
| 349 |
outputs=output_slider)
|
| 350 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 351 |
demo.launch(debug=True, share=True)
|
|
|
|
| 348 |
inputs=[input_image, resolution, num_inference_steps, strength, hdr, guidance_scale, controlnet_strength, scheduler_name],
|
| 349 |
outputs=output_slider)
|
| 350 |
|
| 351 |
+
gr.Examples(
|
| 352 |
+
examples=[
|
| 353 |
+
["image1.jpg", 1536, 20, 0.4, 0, 6, 0.75, "DDIM"],
|
| 354 |
+
["image2.png", 512, 20, 0.55, 0, 6, 0.6, "DDIM"],
|
| 355 |
+
["image3.png", 1024, 20, 0.3, 0, 6, 0.65, "DDIM"]
|
| 356 |
+
],
|
| 357 |
+
inputs=[input_image, resolution, num_inference_steps, strength, hdr, guidance_scale, controlnet_strength, scheduler_name],
|
| 358 |
+
outputs=output_slider,
|
| 359 |
+
fn=gradio_process_image,
|
| 360 |
+
cache_examples=True,
|
| 361 |
+
)
|
| 362 |
+
|
| 363 |
demo.launch(debug=True, share=True)
|