Skip to content

Commit

Permalink
fix: . is missing in file_extension (#8736)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Sep 25, 2024
1 parent 68c7e68 commit bf64ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/core/rag/extractor/extract_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def extract(
extractor = UnstructuredPPTXExtractor(file_path, unstructured_api_url)
elif file_extension == ".xml":
extractor = UnstructuredXmlExtractor(file_path, unstructured_api_url)
elif file_extension == "epub":
elif file_extension == ".epub":
extractor = UnstructuredEpubExtractor(file_path, unstructured_api_url)
else:
# txt
Expand All @@ -146,7 +146,7 @@ def extract(
extractor = WordExtractor(file_path, upload_file.tenant_id, upload_file.created_by)
elif file_extension == ".csv":
extractor = CSVExtractor(file_path, autodetect_encoding=True)
elif file_extension == "epub":
elif file_extension == ".epub":
extractor = UnstructuredEpubExtractor(file_path)
else:
# txt
Expand Down

0 comments on commit bf64ff2

Please sign in to comment.