thefish1 commited on
Commit
32c5240
·
1 Parent(s): 0727f36
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -458,7 +458,7 @@ def chatbot_response(message, history, window_size, threshold, score_threshold,u
458
  distance,ad_summary,ad_keywords=[(candidate['distance'],candidate['summary'],candidate['keyword_list']) for candidate in candidates if candidate['group_id']==max_group_id][0]
459
  print("ad_keywords: ", ad_keywords)
460
  if group_scores:
461
- print(f"group_scores: {sorted(group_scores, key=lambda x: x['score'], reverse=True)}")
462
 
463
 
464
  # if(candidates):
 
458
  distance,ad_summary,ad_keywords=[(candidate['distance'],candidate['summary'],candidate['keyword_list']) for candidate in candidates if candidate['group_id']==max_group_id][0]
459
  print("ad_keywords: ", ad_keywords)
460
  if group_scores:
461
+ print(f"group_scores: { sorted(group_scores, reverse=True)}")
462
 
463
 
464
  # if(candidates):