import gradio as gr def hola(profile: gr.OAuthProfile | None) -> str: if profile is None: return "" return f"Hola, {profile.name}!" with gr.Blocks() as demo: gr.LoginButton() missatge = gr.Markdown() demo.load(hola, inputs=None, outputs=missatge) demo.launch()