WeShop commited on
Commit
41b7242
·
1 Parent(s): 245710e
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -235,6 +235,7 @@ def generate_image(main_image, background_image, did, request: gr.Request, oauth
235
  user_name = None
236
  try:
237
  oauth_infos = whoami(oauth_token.token)
 
238
  if oauth_infos and isinstance(oauth_infos, dict):
239
  user_id = oauth_infos.get('id')
240
  user_name = oauth_infos.get('name')
 
235
  user_name = None
236
  try:
237
  oauth_infos = whoami(oauth_token.token)
238
+ print(f"oauth_infos={oauth_infos}")
239
  if oauth_infos and isinstance(oauth_infos, dict):
240
  user_id = oauth_infos.get('id')
241
  user_name = oauth_infos.get('name')