Liam Dyer commited on
Commit
f5f6563
·
unverified ·
1 Parent(s): 627add1

dealing with some kerfuffles

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def predict(queries, documents, max_characters) -> list[list[str]]:
126
  converted_docs = [convert(doc) for doc in documents]
127
 
128
  # Return if the total length is less than the max characters
129
- total_doc_lengths = sum([len(doc) for doc, _ in converted_docs])
130
  if total_doc_lengths < max_characters:
131
  return [[doc] for doc, _ in converted_docs]
132
 
 
126
  converted_docs = [convert(doc) for doc in documents]
127
 
128
  # Return if the total length is less than the max characters
129
+ total_doc_lengths = sum([len(doc) for doc in converted_docs])
130
  if total_doc_lengths < max_characters:
131
  return [[doc] for doc, _ in converted_docs]
132