liyaoshi commited on
Commit
be827cd
·
verified ·
1 Parent(s): 5544b38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("Please login to...")
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}')