Spaces:
Sleeping
Sleeping
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 ' | |
'<p style="text-align: center;">Login to access the tool.</p>' | |
) | |
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() |