Skip to content

Commit

Permalink
chore(api/core/rag/extractor/word_extractor.py): Add a 'TODO' mark.
Browse files Browse the repository at this point in the history
  • Loading branch information
laipz8200 committed Sep 12, 2024
1 parent 309bc9c commit 49ae7fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/core/rag/extractor/word_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(self, file_path: str, tenant_id: str, user_id: str):
raise ValueError(f"Check the url of your file; returned status code {r.status_code}")

self.web_path = self.file_path
# TODO: use a better way to handle the file
self.temp_file = tempfile.NamedTemporaryFile() # noqa: SIM115
self.temp_file.write(r.content)
self.file_path = self.temp_file.name
Expand Down

0 comments on commit 49ae7fe

Please sign in to comment.