Skip to content

Commit

Permalink
removed unnecessery line
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo-Feu committed Dec 19, 2024
1 parent 84a333d commit 939a8a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/markitdown/_markitdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ def convert_img(self, el: Any, text: str, convert_as_inline: bool) -> str:
if src.startswith("data:image/"):
if self.mlm_client is not None and self.mlm_model is not None:
md = ImageConverter()
ext = f".{src.split(",")[0].split(";")[0].split("/")[1]}"
result = md._convert(src, file_extension=ext, mlm_client=self.mlm_client, mlm_model=self.mlm_model)
result = md._convert(src, mlm_client=self.mlm_client, mlm_model=self.mlm_model)
src = result.text_content if result is not None else src.split(",")[0] + "..."
else:
src = src.split(",")[0] + "..."
Expand Down

0 comments on commit 939a8a3

Please sign in to comment.