Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -175,7 +175,8 @@ def append_to_at_qalog(your_role, school_selection, output_format, input_text, g
|
|
175 |
'input_text': str(input_text),
|
176 |
'gpt_response': str(gpt_response),
|
177 |
'response_time': str(response_time),
|
178 |
-
'question_cost': question_cost
|
|
|
179 |
}
|
180 |
|
181 |
data = {
|
@@ -295,6 +296,8 @@ def login_auth(username, password):
|
|
295 |
if data.get('records'):
|
296 |
|
297 |
log_login(username)
|
|
|
|
|
298 |
|
299 |
return True
|
300 |
|
|
|
175 |
'input_text': str(input_text),
|
176 |
'gpt_response': str(gpt_response),
|
177 |
'response_time': str(response_time),
|
178 |
+
'question_cost': question_cost,
|
179 |
+
'user_name': str(logged_in_user)
|
180 |
}
|
181 |
|
182 |
data = {
|
|
|
296 |
if data.get('records'):
|
297 |
|
298 |
log_login(username)
|
299 |
+
global logged_in_user
|
300 |
+
logged_in_user = username
|
301 |
|
302 |
return True
|
303 |
|