SiddharthAK commited on
Commit
33cda6e
·
verified ·
1 Parent(s): 8cbba1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -391,9 +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
- if i >= 50:
395
- terms_list.append(f"...and {len(sorted_representation) - 50} more terms.")
396
- break
397
  if is_binary:
398
  terms_list.append(f"**{term}**")
399
  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: