Fix login
Browse files
app.py
CHANGED
|
@@ -272,8 +272,6 @@ def generate_image(main_image, background_image, did, request: gr.Request):
|
|
| 272 |
if not did:
|
| 273 |
did = str(uuid.uuid4())
|
| 274 |
user_id, user_name = check_login_status(request.request.headers)
|
| 275 |
-
print(f"user_id = {user_id}")
|
| 276 |
-
print(f"user_name = {user_name}")
|
| 277 |
if not user_id or not user_name:
|
| 278 |
m = "Please log in to your Hugging Face account to use the features of this application."
|
| 279 |
return gr.Warning(m), did
|
|
|
|
| 272 |
if not did:
|
| 273 |
did = str(uuid.uuid4())
|
| 274 |
user_id, user_name = check_login_status(request.request.headers)
|
|
|
|
|
|
|
| 275 |
if not user_id or not user_name:
|
| 276 |
m = "Please log in to your Hugging Face account to use the features of this application."
|
| 277 |
return gr.Warning(m), did
|