This commit is contained in:
@ -104,7 +104,7 @@ def generate_daily_article() -> List[Dict[str, Any]]:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
# if __name__ == "__main__":
|
||||||
content = generate_daily_article()
|
# content = generate_daily_article()
|
||||||
article = content["阶段4_今日文章"]["文章正文"]
|
# article = content["阶段4_今日文章"]["文章正文"]
|
||||||
print(article)
|
# print(article)
|
||||||
|
|||||||
@ -185,10 +185,10 @@ def orchestrate_for_first_topic() -> Dict[str, Any]:
|
|||||||
return {"topic": top, "bits": bits, "script": script}
|
return {"topic": top, "bits": bits, "script": script}
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
# if __name__ == "__main__":
|
||||||
# quick sanity check when run as script (will call API if keys present)
|
# # quick sanity check when run as script (will call API if keys present)
|
||||||
try:
|
# try:
|
||||||
out = orchestrate_for_first_topic()
|
# out = orchestrate_for_first_topic()
|
||||||
print(json.dumps(out, ensure_ascii=False, indent=2))
|
# print(json.dumps(out, ensure_ascii=False, indent=2))
|
||||||
except Exception as e:
|
# except Exception as e:
|
||||||
print(f"Error during orchestration: {e}")
|
# print(f"Error during orchestration: {e}")
|
||||||
|
|||||||
@ -75,6 +75,6 @@ def job_generate_daily_article():
|
|||||||
logger.error(f"Failed to synthesize/save daily article audio: {e}")
|
logger.error(f"Failed to synthesize/save daily article audio: {e}")
|
||||||
|
|
||||||
# For manual testing
|
# For manual testing
|
||||||
if __name__ == "__main__":
|
# if __name__ == "__main__":
|
||||||
# 每日文章生成
|
# 每日文章生成
|
||||||
job_generate_daily_article()
|
# job_generate_daily_article()
|
||||||
@ -278,7 +278,7 @@ def job_synthesize_podcast_audio():
|
|||||||
db.close()
|
db.close()
|
||||||
|
|
||||||
# For manual testing
|
# For manual testing
|
||||||
if __name__ == "__main__":
|
# if __name__ == "__main__":
|
||||||
# 选题策划和背景素材搜集
|
# 选题策划和背景素材搜集
|
||||||
# job_generate_topics()
|
# job_generate_topics()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user