BookSumBeta / app.py
npc0's picture
Update app.py
2c3f6d8
raw
history blame
507 Bytes
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()