Spaces:
Runtime error
Runtime error
gokaygokay
commited on
Commit
β’
c93bbf7
1
Parent(s):
ee3e703
Update app.py
Browse files
app.py
CHANGED
@@ -216,14 +216,14 @@ 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 |
-
# 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,
|
|
|
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 with all required inputs
|
220 |
gr.Examples(
|
221 |
examples=[
|
222 |
+
["image1.jpg", 512, 20, 0.4, 0, 3],
|
223 |
+
["image2.png", 512, 20, 0.4, 0, 3],
|
224 |
+
["image3.png", 512, 20, 0.4, 0, 3],
|
225 |
],
|
226 |
+
inputs=[input_image, resolution, num_inference_steps, strength, hdr, guidance_scale],
|
227 |
outputs=[output_image],
|
228 |
fn=gradio_process_image,
|
229 |
cache_examples=True,
|