This commit is contained in:
@ -104,7 +104,7 @@ def generate_daily_article() -> List[Dict[str, Any]]:
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
content = generate_daily_article()
|
||||
article = content["阶段4_今日文章"]["文章正文"]
|
||||
print(article)
|
||||
# if __name__ == "__main__":
|
||||
# content = generate_daily_article()
|
||||
# article = content["阶段4_今日文章"]["文章正文"]
|
||||
# print(article)
|
||||
|
||||
@ -185,10 +185,10 @@ def orchestrate_for_first_topic() -> Dict[str, Any]:
|
||||
return {"topic": top, "bits": bits, "script": script}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# quick sanity check when run as script (will call API if keys present)
|
||||
try:
|
||||
out = orchestrate_for_first_topic()
|
||||
print(json.dumps(out, ensure_ascii=False, indent=2))
|
||||
except Exception as e:
|
||||
print(f"Error during orchestration: {e}")
|
||||
# if __name__ == "__main__":
|
||||
# # quick sanity check when run as script (will call API if keys present)
|
||||
# try:
|
||||
# out = orchestrate_for_first_topic()
|
||||
# print(json.dumps(out, ensure_ascii=False, indent=2))
|
||||
# except Exception as e:
|
||||
# print(f"Error during orchestration: {e}")
|
||||
|
||||
Reference in New Issue
Block a user