Spaces:
Runtime error
Runtime error
fix: hopefully this will get the right username
Browse files
app.py
CHANGED
@@ -247,7 +247,8 @@ def vote(data: gr.LikeData):
|
|
247 |
|
248 |
def create_greeting(request: gr.Request):
|
249 |
global USERNAME
|
250 |
-
|
|
|
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:
|