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