Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -405,7 +405,7 @@ async def clean_html_content(html_content: str, image_counter: List[int], images
|
|
405 |
'base64_image': base64_image
|
406 |
}
|
407 |
placeholder = f"<!--IMG_{X}-->"
|
408 |
-
comment_tag =
|
409 |
img.insert_before(comment_tag)
|
410 |
logging.debug(f"DEBUG CLEAN_HTML: Insertion du commentaire avant l'image : {comment_tag}")
|
411 |
img.decompose() # Remove the image tag
|
|
|
405 |
'base64_image': base64_image
|
406 |
}
|
407 |
placeholder = f"<!--IMG_{X}-->"
|
408 |
+
comment_tag = Comment(f"IMG_{X}")
|
409 |
img.insert_before(comment_tag)
|
410 |
logging.debug(f"DEBUG CLEAN_HTML: Insertion du commentaire avant l'image : {comment_tag}")
|
411 |
img.decompose() # Remove the image tag
|