import gradio as gr def run(image): return type(image) gr.Interface(fn=run, inputs="image", outputs="text").launch()