Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,10 +13,10 @@ with gr.Blocks() as demo:
|
|
| 13 |
with gr.Column():
|
| 14 |
img1 = gr.Image(label='Image 1', type='filepath')
|
| 15 |
img2 = gr.Image(label='Image 2',type='filepath')
|
| 16 |
-
slider = gr.Slider()
|
| 17 |
btn = gr.Button("Blend")
|
| 18 |
with gr.Column():
|
| 19 |
-
output = gr.Image(label='Result'
|
| 20 |
|
| 21 |
|
| 22 |
btn.click(fn=blend, inputs=[img1, img2, slider], outputs=output)
|
|
|
|
| 13 |
with gr.Column():
|
| 14 |
img1 = gr.Image(label='Image 1', type='filepath')
|
| 15 |
img2 = gr.Image(label='Image 2',type='filepath')
|
| 16 |
+
slider = gr.Slider(label='Weight', maximum=1.0, value=0.5)
|
| 17 |
btn = gr.Button("Blend")
|
| 18 |
with gr.Column():
|
| 19 |
+
output = gr.Image(label='Result')
|
| 20 |
|
| 21 |
|
| 22 |
btn.click(fn=blend, inputs=[img1, img2, slider], outputs=output)
|