Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -392,9 +392,6 @@ def format_sparse_vector_output(splade_vector, tokenizer, is_binary=False):
|
|
392 |
terms_list = []
|
393 |
for i, (term, weight) in enumerate(sorted_representation):
|
394 |
# Limiting to 50 terms for display to avoid overly long output
|
395 |
-
if i >= 50:
|
396 |
-
terms_list.append(f"...and {len(sorted_representation) - 50} more terms.")
|
397 |
-
break
|
398 |
if is_binary:
|
399 |
terms_list.append(f"**{term}**")
|
400 |
else:
|
|
|
392 |
terms_list = []
|
393 |
for i, (term, weight) in enumerate(sorted_representation):
|
394 |
# Limiting to 50 terms for display to avoid overly long output
|
|
|
|
|
|
|
395 |
if is_binary:
|
396 |
terms_list.append(f"**{term}**")
|
397 |
else:
|