Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -391,10 +391,6 @@ def format_sparse_vector_output(splade_vector, tokenizer, is_binary=False):
|
|
391 |
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 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:
|
|
|
391 |
else:
|
392 |
terms_list = []
|
393 |
for i, (term, weight) in enumerate(sorted_representation):
|
|
|
|
|
|
|
|
|
394 |
if is_binary:
|
395 |
terms_list.append(f"**{term}**")
|
396 |
else:
|