amaisto commited on
Commit
84b0e1e
·
verified ·
1 Parent(s): aa6a5e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)<2:
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, response[1])
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