mohbay commited on
Commit
74b7f80
·
verified ·
1 Parent(s): bc9e59e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -277,7 +277,7 @@ def predict(text):
277
 
278
  # Sort by combined score and get top candidates from filtered results
279
  by_combined = sorted(filtered_results, key=lambda x: x["combined_score"], reverse=True)
280
- top_combined = by_combined[:3]
281
 
282
  # Get questions from top combined to avoid duplicates
283
  used_questions = {item["question"] for item in top_combined}
 
277
 
278
  # Sort by combined score and get top candidates from filtered results
279
  by_combined = sorted(filtered_results, key=lambda x: x["combined_score"], reverse=True)
280
+ top_combined = by_combined[:top_k-5]
281
 
282
  # Get questions from top combined to avoid duplicates
283
  used_questions = {item["question"] for item in top_combined}