WeShop commited on
Commit
df0ce92
·
1 Parent(s): 6302421

Fix login

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -267,6 +267,8 @@ def generate_image(main_image, text_description, did, request: gr.Request):
267
  if not did:
268
  did = str(uuid.uuid4())
269
  user_id, user_name = check_login_status(request.request.headers)
 
 
270
  if not user_id or not user_name:
271
  m = "Please log in to your Hugging Face account to use the features of this application."
272
  return gr.Warning(m), did
 
267
  if not did:
268
  did = str(uuid.uuid4())
269
  user_id, user_name = check_login_status(request.request.headers)
270
+ print(f"request.request.headers={request.request.headers}")
271
+ print(f"request.request.cookies={request.request.cookies}")
272
  if not user_id or not user_name:
273
  m = "Please log in to your Hugging Face account to use the features of this application."
274
  return gr.Warning(m), did