Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,15 +6,17 @@ def greet(name):
|
|
| 6 |
|
| 7 |
def hello(profile: gr.OAuthProfile | None) -> str:
|
| 8 |
if profile is None:
|
| 9 |
-
return
|
|
|
|
|
|
|
|
|
|
| 10 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 11 |
iface.launch()
|
| 12 |
return f"Hello {profile.name}"
|
| 13 |
|
| 14 |
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
-
gr.
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
demo.launch()
|
|
|
|
| 6 |
|
| 7 |
def hello(profile: gr.OAuthProfile | None) -> str:
|
| 8 |
if profile is None:
|
| 9 |
+
return (
|
| 10 |
+
'# ePub summarization tool'
|
| 11 |
+
'<p style="text-align: center;">Login to access the tool.</p>'
|
| 12 |
+
)
|
| 13 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 14 |
iface.launch()
|
| 15 |
return f"Hello {profile.name}"
|
| 16 |
|
| 17 |
|
| 18 |
with gr.Blocks() as demo:
|
| 19 |
+
with gr.Column(scale=1):
|
| 20 |
+
gr.Markdown().attach_load_event(hello, None)
|
| 21 |
+
gr.LoginButton()
|
| 22 |
+
# gr.LogoutButton()
|
|
|