Upload 2 files
Browse files- app.py +13 -0
- requirements.txt +1 -0
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def hola(profile: gr.OAuthProfile | None) -> str:
|
4 |
+
if profile is None:
|
5 |
+
return ""
|
6 |
+
return f"Hola, {profile.name}!"
|
7 |
+
|
8 |
+
with gr.Blocks() as demo:
|
9 |
+
gr.LoginButton()
|
10 |
+
missatge = gr.Markdown()
|
11 |
+
demo.load(hola, inputs=None, outputs=missatge)
|
12 |
+
|
13 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio
|