Skip to content

Commit 47ddd0b

Browse files
committed
fix: fix PR comments
1 parent 4acdc09 commit 47ddd0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aidial_rag/image_processor/pdf_page_image_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async def extract_pages_gen(
9090

9191
logger.debug(f"Extracting page {page_number}...")
9292

93-
# Render in thread pool, because pypdfium2 is not thread safe
93+
# Render in thread pool with a single thread, because pypdfium2 is not thread safe
9494
image = await loop.run_in_executor(
9595
self._thread_pool,
9696
_render_page,

tests/test_image_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def test_attachment_image_invalid_page2():
7171

7272

7373
@pytest.mark.asyncio
74-
async def test_attachment_pptx():
74+
async def test_presentation_converted():
7575
with open("tests/data/test_presentation_converted.pdf", "rb") as pdf_file:
7676
pdf_bytes = pdf_file.read()
7777

0 commit comments

Comments
 (0)