import gradio as gr with gr.Blocks() as demo: t = gr.Textbox() i = gr.Image(type="filepath") t.submit(lambda : "cheetah.jpg", None, i) demo.launch()