WeShop commited on
Commit
b3e79d0
·
1 Parent(s): 3a2f2a4
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -261,6 +261,7 @@ def check_login_status(headers):
261
  def generate_image(main_image, background_image, did, request: gr.Request):
262
  if not did:
263
  did = str(uuid.uuid4())
 
264
  user_id, user_name = check_login_status(request.request.headers)
265
  if not user_id or not user_name:
266
  m = "Please log in to your Hugging Face account to use the features of this application."
 
261
  def generate_image(main_image, background_image, did, request: gr.Request):
262
  if not did:
263
  did = str(uuid.uuid4())
264
+ print(f"request.request={request.request}")
265
  user_id, user_name = check_login_status(request.request.headers)
266
  if not user_id or not user_name:
267
  m = "Please log in to your Hugging Face account to use the features of this application."