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()