WeShop commited on
Commit
1598c59
·
1 Parent(s): b3e79d0
Files changed (2) hide show
  1. app.py +2 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -262,6 +262,8 @@ 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."
 
262
  if not did:
263
  did = str(uuid.uuid4())
264
  print(f"request.request={request.request}")
265
+ print(f"request.username={request.username}")
266
+ print(f"request.session_hash={request.session_hash}")
267
  user_id, user_name = check_login_status(request.request.headers)
268
  if not user_id or not user_name:
269
  m = "Please log in to your Hugging Face account to use the features of this application."
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
- gradio
2
  pydantic==2.10.6
3
  python-dotenv
 
1
+ gradio==5.49.1
2
  pydantic==2.10.6
3
  python-dotenv