Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -484,12 +484,12 @@ def main():
|
|
| 484 |
|
| 485 |
response, is_idk = bot.respond(message, history, current_user_name)
|
| 486 |
response_text = response[0]
|
| 487 |
-
if len(response)
|
| 488 |
scores = ["no_data","no_data"]
|
| 489 |
scores = response[1]
|
| 490 |
|
| 491 |
# Salva l'interazione nel file di log della sessione
|
| 492 |
-
log_interaction_to_file(current_session_log_file, current_user_name, message, response_text, is_idk,
|
| 493 |
|
| 494 |
new_history = history + [[message, response_text]]
|
| 495 |
return new_history, "", current_session_log_file # Restituisce il log_file per mantenerlo nello stato
|
|
|
|
| 484 |
|
| 485 |
response, is_idk = bot.respond(message, history, current_user_name)
|
| 486 |
response_text = response[0]
|
| 487 |
+
if len(response)==1:
|
| 488 |
scores = ["no_data","no_data"]
|
| 489 |
scores = response[1]
|
| 490 |
|
| 491 |
# Salva l'interazione nel file di log della sessione
|
| 492 |
+
log_interaction_to_file(current_session_log_file, current_user_name, message, response_text, is_idk, scores)
|
| 493 |
|
| 494 |
new_history = history + [[message, response_text]]
|
| 495 |
return new_history, "", current_session_log_file # Restituisce il log_file per mantenerlo nello stato
|