sketch-cut-off / app.py
hysts's picture
hysts HF Staff
initial commit
1b7f170
raw
history blame contribute delete
366 Bytes
#!/usr/bin/env python
import gradio as gr
with gr.Blocks() as demo:
image1 = gr.Image(width=400, height=400, interactive=True)
image2 = gr.Image(width=400, height=400, interactive=True, tool="sketch")
gr.Examples(examples=[["images/bulb_rgb.png", "images/bulb_rgb.png"]], inputs=[image1, image2])
if __name__ == "__main__":
demo.queue().launch()