Skip to content

Commit

Permalink
Remove double import
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Oct 21, 2023
1 parent cc5d27b commit b14b220
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/danswer/connectors/file/connector.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"]})

Expand Down

1 comment on commit b14b220

@vercel
Copy link

@vercel vercel bot commented on b14b220 Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.