liyaoshi commited on
Commit
645bac4
·
verified ·
1 Parent(s): 7b5f63c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,12 +9,13 @@ def hello(profile: gr.OAuthProfile | None) -> str:
9
  return "I don't know you."
10
  return f"Hello {profile.name}"
11
 
12
- def message(message,history,profile: gr.OAuthProfile | None):
13
  if profile is None:
14
  raise gr.Error("Please login to...")
15
  return
16
  else:
17
  print(profile)
 
18
  return f"hello {profile.name}"
19
 
20
  def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> str:
 
9
  return "I don't know you."
10
  return f"Hello {profile.name}"
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
  return
16
  else:
17
  print(profile)
18
+ print(f'oauth token: {oauth_token.token}')
19
  return f"hello {profile.name}"
20
 
21
  def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> str: