Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ def greet(name):
|
|
| 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,9 +17,9 @@ def hello(profile: gr.OAuthProfile | None) -> str:
|
|
| 17 |
|
| 18 |
|
| 19 |
with gr.Blocks() as demo:
|
| 20 |
-
|
| 21 |
-
|
| 22 |
gr.LoginButton()
|
| 23 |
-
|
| 24 |
-
|
| 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()
|