npc0 commited on
Commit
16f1aaf
·
1 Parent(s): cb8de88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -4,7 +4,7 @@ def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
 
7
- def hello(profile: gr.OAuthProfile | None) -> str:
8
  if profile is None:
9
  return gr.Markdown(
10
  '# ePub summarization tool '
@@ -17,9 +17,9 @@ def hello(profile: gr.OAuthProfile | None) -> str:
17
 
18
 
19
  with gr.Blocks() as demo:
20
- gr.Blocks().attach_load_event(hello, None)
21
- if gr.OAuthProfile is None:
22
  gr.LoginButton()
23
- else:
24
- gr.LogoutButton()
25
  demo.launch()
 
4
  return "Hello " + name + "!!"
5
 
6
 
7
+ def hello(profile: gr.OAuthProfile | None):
8
  if profile is None:
9
  return gr.Markdown(
10
  '# ePub summarization tool '
 
17
 
18
 
19
  with gr.Blocks() as demo:
20
+ hello()
21
+ with gr.Row():
22
  gr.LoginButton()
23
+ if gr.OAuthProfile is not None:
24
+ gr.LogoutButton()
25
  demo.launch()