This commit is contained in:
Saifeddine ALOUI 2024-07-21 22:52:15 +02:00
parent 0314cb99e3
commit a7d33307d2

View File

@ -573,7 +573,7 @@ class TasksLibrary:
hasher = hashlib.md5()
hasher.update(text.encode("utf8"))
document_chunks = tc.get_text_chunks(text, Document(hasher.hexdigest(), doc_name ) )
document_chunks = tc.get_text_chunks(text, Document(hasher.hexdigest(), doc_name, doc_name ) )
text = self.summarize_chunks(
document_chunks,
summary_instruction,