import gradio as gr from gradio_imageslider import ImageSlider with gr.Blocks() as demo: with gr.Row(): with gr.Column(): input_image = gr.Image(type="pil", label="Input Image") run_button = gr.Button("Upscale") with gr.Column(): result = ImageSlider( interactive=False, label="Generated Image", elem_id="result-image", position=0.1 )