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"]})