Spaces:
Running
Running
Update post_blog.py
Browse files- 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(
|
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):
|