Bentham commited on
Commit
84fbe33
·
verified ·
1 Parent(s): af3c3a9

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 = soup.new_tag(Comment, placeholder) # Create a comment node
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