import gradio as gr def greet(name): return "Hello " + name + "!!" def hello(profile: gr.OAuthProfile | None): if profile is None: return gr.Markdown( '# ePub summarization tool ' '

Login to access the tool.

' ) return f"Hello {profile.name}" with gr.Blocks() as demo: with gr.Row(): gr.LoginButton() gr.LogoutButton() gr.File() gr.Markdown().attach_load_event(hello, None) demo.launch()