import gradio as gr def welcome(name): return f"Welcome to GmasterAI, {name}!" with gr.Blocks() as demo: gr.Markdown( """ # Welcome to experience GmasterAI ! ### an exquisite AI drawing application. New users will receive 10 free trial opportunities upon registration. ### Website: https://www.gmaster.ai Gmaster.ai """) inp = gr.Textbox(placeholder="What is your name?") out = None inp.change(welcome, inp, out) demo.launch()