import gradio as gr with gr.Blocks() as demo: t = gr.Textbox() demo.load(lambda :"Hi", None, t) demo.launch()