SiddharthAK commited on
Commit
7ffc91a
·
verified ·
1 Parent(s): 4beff90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
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: