mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
fix type checker
This commit is contained in:
@@ -16,6 +16,7 @@ class PDFKnowledgeSource(BaseFileKnowledgeSource):
|
||||
|
||||
for path in paths:
|
||||
text = ""
|
||||
path = self.convert_to_path(path)
|
||||
with pdfplumber.open(path) as pdf:
|
||||
for page in pdf.pages:
|
||||
page_text = page.extract_text()
|
||||
|
||||
Reference in New Issue
Block a user