Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -371,7 +371,7 @@ def convert_pptx_to_html(input_filename: str) -> str:
|
|
371 |
html_content += f"<p>{text_content}</p>"
|
372 |
else:
|
373 |
html_content += f"<p>{text_content}</p>"
|
374 |
-
elif shape.
|
375 |
image = shape.image
|
376 |
image_bytes = image.blob
|
377 |
base64_encoded = base64.b64encode(image_bytes).decode('utf-8')
|
|
|
371 |
html_content += f"<p>{text_content}</p>"
|
372 |
else:
|
373 |
html_content += f"<p>{text_content}</p>"
|
374 |
+
elif shape.shape_type == MSO_SHAPE_TYPE.PICTURE:
|
375 |
image = shape.image
|
376 |
image_bytes = image.blob
|
377 |
base64_encoded = base64.b64encode(image_bytes).decode('utf-8')
|