Update server.py
Browse files
server.py
CHANGED
@@ -20,7 +20,7 @@ def parse_pdf_and_return_markdown(pdf_file: bytes , extract_images: bool):
|
|
20 |
image_bytes = f.read()
|
21 |
|
22 |
image_base64 = base64.b64encode(image_bytes).decode('utf-8')
|
23 |
-
image_data[
|
24 |
|
25 |
os.remove(filename)
|
26 |
|
|
|
20 |
image_bytes = f.read()
|
21 |
|
22 |
image_base64 = base64.b64encode(image_bytes).decode('utf-8')
|
23 |
+
image_data[filename] = image_base64
|
24 |
|
25 |
os.remove(filename)
|
26 |
|