Spaces:
Running
Running
Update app.py
Browse files
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[:
|
| 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}
|