minimal / app.py
Niqull's picture
Changed ImageEditor block to match gradio docs
e961ab5
raw
history blame
244 Bytes
import gradio as gr
def predict(im):
return im["composite"]
with gr.Blocks(fill_height=True, fill_width=True) as demo:
with gr.Row():
im = gr.ImageEditor(
type="numpy",
crop_size="1:1"
)
im_preview = gr.Image()
demo.launch()