Skip to content

Commit dbf7a17

Browse files
committed
add doc
1 parent 329d14f commit dbf7a17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/onyx/file_processing/extract_file_text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ def read_pdf_file(
308308

309309

310310
def extract_docx_images(docx_bytes: IO[Any]) -> list[tuple[bytes, str]]:
311+
"""
312+
Given the bytes of a docx file, extract all the images.
313+
Returns a list of tuples (image_bytes, image_name).
314+
"""
311315
out = []
312316
try:
313317
with zipfile.ZipFile(docx_bytes) as z:

0 commit comments

Comments
 (0)