Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def hello(profile: gr.OAuthProfile | None) -> str:
|
|
11 |
|
12 |
def message(message,history,profile: gr.OAuthProfile | None,oauth_token: gr.OAuthToken | None):
|
13 |
if profile is None:
|
14 |
-
raise gr.Error("
|
15 |
else:
|
16 |
print(profile)
|
17 |
print(f'oauth token: {oauth_token.token}')
|
|
|
11 |
|
12 |
def message(message,history,profile: gr.OAuthProfile | None,oauth_token: gr.OAuthToken | None):
|
13 |
if profile is None:
|
14 |
+
raise gr.Error('Click "Sign in with Hugging Face" to continue')
|
15 |
else:
|
16 |
print(profile)
|
17 |
print(f'oauth token: {oauth_token.token}')
|