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