Spaces:
Runtime error
Runtime error
File size: 551 Bytes
f19c435 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import gradio as gr
def blend(img1, img2, slider):
return img1
with gr.Blocks() as demo:
gr.Markdown("""
# Image Blender
by [Tony Assi](https://www.tonyassi.com/)
""")
with gr.Row():
with gr.Column():
img1 = gr.Image(type='filepath')
img2 = gr.Image(type='filepath')
slider = gr.Slider()
btn = gr.Button("Blend")
with gr.Column():
output = gr.Image()
btn.click(fn=blend, inputs=[img1, img2, slider], outputs=output)
demo.launch() |