Commit 049ea8e7 authored by John Wang's avatar John Wang

fix: xlsx loader

parent 9284bb9b
...@@ -23,7 +23,7 @@ class FileExtractor: ...@@ -23,7 +23,7 @@ class FileExtractor:
storage.download(upload_file.key, file_path) storage.download(upload_file.key, file_path)
input_file = Path(file_path) input_file = Path(file_path)
if input_file.suffix == '.xlxs': if input_file.suffix == '.xlsx':
loader = ExcelLoader(file_path) loader = ExcelLoader(file_path)
elif input_file.suffix == '.pdf': elif input_file.suffix == '.pdf':
loader = PdfLoader(file_path, upload_file=upload_file) loader = PdfLoader(file_path, upload_file=upload_file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment