import gradio as gr def blur(img): return img iface = gr.Interface(fn=blur, inputs=gr.Image(type='pil'), outputs="text") iface.launch()