bufix
This commit is contained in:
parent
84b3e1d2f7
commit
68decd4508
@ -147,7 +147,8 @@ def fileloader(file_path):
|
||||
elif file_path.lower().endswith('.docx'):
|
||||
loader = MyDocxLoader(file_path=file_path)
|
||||
elif file_path.lower().endswith('.doc'):
|
||||
loader = MyDocLoader(file_path=file_path)
|
||||
raise Exception(f'not supported file({file_path}')
|
||||
# loader = MyDocLoader(file_path=file_path)
|
||||
elif file_path.lower().endswith('.pptx') or file_path.lower().endswith('.pptx'):
|
||||
loader = MyPptLoader(file_path=file_path)
|
||||
elif file_path.lower().endswith('.xlsx') or file_path.lower().endswith('.xls'):
|
||||
@ -157,7 +158,8 @@ def fileloader(file_path):
|
||||
elif file_path.lower().endswith('.epub'):
|
||||
loader = MyEpubLoader(file_path=file_path)
|
||||
elif file_path.lower().endswith('.chm'):
|
||||
loader = MyChmLoader(file_path=file_path)
|
||||
raise Exception(f'not supported file({file_path}')
|
||||
# loader = MyChmLoader(file_path=file_path)
|
||||
elif file_path.lower().endswith('.mobi'):
|
||||
loader = MyMobiLoader(file_path=file_path)
|
||||
else:
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user