vpcom commited on
Commit
9d5edad
·
1 Parent(s): 5d7a272

fix: hopefully this will get the right username

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -247,7 +247,8 @@ def vote(data: gr.LikeData):
247
 
248
  def create_greeting(request: gr.Request):
249
  global USERNAME
250
- USERNAME = request.username
 
251
  return gr.Markdown.update(value=f"Thanks for logging in, {request.username}")
252
 
253
  with gr.Blocks(css=CSS) as demo:
 
247
 
248
  def create_greeting(request: gr.Request):
249
  global USERNAME
250
+ print(dir(request))
251
+ USERNAME = request.request.session.get('user')
252
  return gr.Markdown.update(value=f"Thanks for logging in, {request.username}")
253
 
254
  with gr.Blocks(css=CSS) as demo: