Skip to content

Commit

Permalink
removed print
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansh5461 committed Sep 1, 2023
1 parent 6e85a91 commit 5460df3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion querent/ingestors/texts/text_ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ async def extract_and_process_text(

async def extract_text_from_file(self, collected_bytes: CollectedBytes) -> str:
text = collected_bytes.data.decode("utf-8")
print(text)
return text

async def process_data(self, text: str) -> List[str]:
Expand Down
4 changes: 1 addition & 3 deletions tests/test_text_ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ async def test_collect_and_ingest_txt():

# Set up the ingestor
ingestor_factory_manager = IngestorFactoryManager()
ingestor_factory = await ingestor_factory_manager.get_factory(
"txt"
) # Notice the use of await here
ingestor_factory = await ingestor_factory_manager.get_factory("txt")
ingestor = await ingestor_factory.create("txt", [])

# Collect and ingest the PDF
Expand Down

0 comments on commit 5460df3

Please sign in to comment.