Spaces:
Running
on
Zero
Running
on
Zero
log user
Browse files
app.py
CHANGED
@@ -217,7 +217,8 @@ with gr.Blocks(title="PixDiet", theme=gr.themes.Ocean()) as demo:
|
|
217 |
global IS_LOGGED_IN, USER_ID
|
218 |
if user is not None:
|
219 |
IS_LOGGED_IN = True
|
220 |
-
|
|
|
221 |
print(f"User logged in: {USER_ID}")
|
222 |
return gr.update(visible=False), gr.update(visible=True), gr.update(visible=True)
|
223 |
else:
|
|
|
217 |
global IS_LOGGED_IN, USER_ID
|
218 |
if user is not None:
|
219 |
IS_LOGGED_IN = True
|
220 |
+
print(user)
|
221 |
+
USER_ID = user
|
222 |
print(f"User logged in: {USER_ID}")
|
223 |
return gr.update(visible=False), gr.update(visible=True), gr.update(visible=True)
|
224 |
else:
|