import gradio as gr def upload_image(image): return image iface = gr.Interface( fn=upload_image, inputs=gr.Image(type="jpg"), outputs="image", title="Image Uploader", description="Upload an image and see the result below." ) iface.launch()