Spaces:
Runtime error
Runtime error
AlbertoFH98
commited on
Commit
•
6a83868
1
Parent(s):
d1707ec
Update utils.py
Browse files
utils.py
CHANGED
@@ -345,8 +345,8 @@ Resumen:"""
|
|
345 |
length_function = len,
|
346 |
is_separator_regex = True,
|
347 |
)
|
348 |
-
split_docs
|
349 |
-
|
350 |
|
351 |
return doc_summary
|
352 |
|
|
|
345 |
length_function = len,
|
346 |
is_separator_regex = True,
|
347 |
)
|
348 |
+
split_docs = text_splitter.create_documents([docs])
|
349 |
+
doc_summary = map_reduce_chain.run(split_docs)
|
350 |
|
351 |
return doc_summary
|
352 |
|