Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,7 @@ def hello(profile: gr.OAuthProfile | None) -> str:
|
|
| 7 |
print(profile)
|
| 8 |
if profile is None:
|
| 9 |
return "I don't know you."
|
| 10 |
-
id =
|
| 11 |
-
print(id)
|
| 12 |
|
| 13 |
return f"Hello {id}"
|
| 14 |
|
|
|
|
| 7 |
print(profile)
|
| 8 |
if profile is None:
|
| 9 |
return "I don't know you."
|
| 10 |
+
id = whoami(oauth_token.token)['id']
|
|
|
|
| 11 |
|
| 12 |
return f"Hello {id}"
|
| 13 |
|