import gradio as gr iface = gr.Interface(image_mod, gr.Image(type="pil"), "image") iface.launch()