Skip to content

Commit

Permalink
update langchain
Browse files Browse the repository at this point in the history
  • Loading branch information
qingzhong1 committed Jan 23, 2024
1 parent 8f34abf commit 1a03116
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,7 @@ async def tackle_file(self, docs: List[Document]):
docs = self.split_documents(docs)
summaries = []
for doc in docs:
import time

time1 = time.time()
summary = await self.generate_abstract(doc.page_content)
time2 = time.time()
print(time2 - time1)
summaries.append(summary)
summary = "\n".join(summaries)
if len(summaries) > 1:
Expand Down

0 comments on commit 1a03116

Please sign in to comment.