Spaces:
Running
Running
Commit
·
4fb7253
1
Parent(s):
2bf2b98
Comment out file writing and print statements in create_post function for cleaner execution
Browse files- post_blog.py +4 -4
post_blog.py
CHANGED
@@ -116,10 +116,10 @@ def create_post(doi, title, category, summary, mindmap, citation):
|
|
116 |
post_category = f"{category}"
|
117 |
try:
|
118 |
post_body, post_image = generate_post_html(doi, title, category, summary, mindmap, citation)
|
119 |
-
print("_____________________\n\n",title,"\n\n_____________________")
|
120 |
-
with open(f'{title.replace(" ", "_")}.html', 'w', encoding='utf-8') as f:
|
121 |
-
|
122 |
-
exit()
|
123 |
except Exception as e:
|
124 |
print(f"Error generating post: {e}")
|
125 |
return None, None, None, None
|
|
|
116 |
post_category = f"{category}"
|
117 |
try:
|
118 |
post_body, post_image = generate_post_html(doi, title, category, summary, mindmap, citation)
|
119 |
+
# print("_____________________\n\n",title,"\n\n_____________________")
|
120 |
+
# with open(f'{title.replace(" ", "_")}.html', 'w', encoding='utf-8') as f:
|
121 |
+
# f.write(post_body)
|
122 |
+
# exit()
|
123 |
except Exception as e:
|
124 |
print(f"Error generating post: {e}")
|
125 |
return None, None, None, None
|