image-blender / app.py
tonyassi's picture
Create app.py
f19c435 verified
raw
history blame
551 Bytes
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()