raannakasturi commited on
Commit
8a7fd39
·
verified ·
1 Parent(s): aa34b1f

Update post_blog.py

Browse files
Files changed (1) hide show
  1. post_blog.py +1 -1
post_blog.py CHANGED
@@ -26,7 +26,7 @@ def generate_image(title, summary, category):
26
  with open("image.png", "wb") as file:
27
  file.write(data)
28
  encoded_image = base64.b64encode(data)
29
- image = f"data:image/png;base64,{encoded_image.decode("utf-8")}"
30
  return image
31
 
32
  def generate_post_html(title, summary, mindmap, category, citation):
 
26
  with open("image.png", "wb") as file:
27
  file.write(data)
28
  encoded_image = base64.b64encode(data)
29
+ image = f"data:image/png;base64,{encoded_image.decode('utf-8')}"
30
  return image
31
 
32
  def generate_post_html(title, summary, mindmap, category, citation):