WeShop commited on
Commit
5675f35
Β·
1 Parent(s): 730db3d
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ™†β€β™‚οΈ
4
  colorFrom: pink
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 5.25.2
8
  app_file: app.py
9
  pinned: false
10
  license: other
 
4
  colorFrom: pink
5
  colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 5.49.1
8
  app_file: app.py
9
  pinned: false
10
  license: other
app.py CHANGED
@@ -231,7 +231,7 @@ def generate_image(main_image, text_description, did, request: gr.Request, oauth
231
  user_name = None
232
  try:
233
  oauth_infos = whoami(oauth_token.token)
234
- print(f"oauth_infos={oauth_infos}")
235
  if oauth_infos and isinstance(oauth_infos, dict):
236
  user_id = oauth_infos.get('id')
237
  user_name = oauth_infos.get('name')
 
231
  user_name = None
232
  try:
233
  oauth_infos = whoami(oauth_token.token)
234
+ print(f"oauth_infos={oauth_infos}, {int(time.time())}")
235
  if oauth_infos and isinstance(oauth_infos, dict):
236
  user_id = oauth_infos.get('id')
237
  user_name = oauth_infos.get('name')