Spaces:
Running
on
Zero
Running
on
Zero
Liam Dyer
commited on
dealing with some kerfuffles
Browse files
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
|
| 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 |
|