blanchon commited on
Commit
153e457
·
1 Parent(s): 9728009
Files changed (1) hide show
  1. app.py +2 -1
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
- USER_ID = user.email
 
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: