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