From b14b220d89fd1754cac763dbe3e129daebff099c Mon Sep 17 00:00:00 2001 From: Weves Date: Sat, 21 Oct 2023 00:43:43 -0700 Subject: [PATCH] Remove double import --- backend/danswer/connectors/file/connector.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/danswer/connectors/file/connector.py b/backend/danswer/connectors/file/connector.py index ec0ff6f640b..72550f8595a 100644 --- a/backend/danswer/connectors/file/connector.py +++ b/backend/danswer/connectors/file/connector.py @@ -1,10 +1,10 @@ +import os from collections.abc import Generator from datetime import datetime from datetime import timezone from pathlib import Path from typing import Any from typing import IO -import os from danswer.configs.app_configs import INDEX_BATCH_SIZE from danswer.configs.constants import DocumentSource @@ -107,8 +107,6 @@ def load_from_state(self) -> GenerateDocumentsOutput: if __name__ == "__main__": - import os - connector = LocalFileConnector(file_locations=[os.environ["TEST_FILE"]]) connector.load_credentials({"pdf_password": os.environ["PDF_PASSWORD"]})