fixed types

This commit is contained in:
Lorenze Jay
2024-12-03 10:12:37 -08:00
parent 543ebbf3a4
commit aab05388d5
5 changed files with 32 additions and 6 deletions

View File

@@ -12,9 +12,9 @@ class ExcelKnowledgeSource(BaseFileKnowledgeSource):
pd = self._import_dependencies()
if isinstance(self.file_path, list):
file_path = self.file_path[0]
file_path = self.convert_to_path(self.file_path[0])
else:
file_path = self.file_path
file_path = self.convert_to_path(self.file_path)
df = pd.read_excel(file_path)
content = df.to_csv(index=False)