commit code
All checks were successful
Gitea Actions Demo / deploy (push) Successful in 13s

This commit is contained in:
2025-12-29 19:57:58 +08:00
parent 7a2f9fd005
commit 80978ff304
4 changed files with 14 additions and 14 deletions

View File

@ -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)

View File

@ -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}")

View File

@ -75,6 +75,6 @@ def job_generate_daily_article():
logger.error(f"Failed to synthesize/save daily article audio: {e}")
# For manual testing
if __name__ == "__main__":
# if __name__ == "__main__":
# 每日文章生成
job_generate_daily_article()
# job_generate_daily_article()

View File

@ -278,7 +278,7 @@ def job_synthesize_podcast_audio():
db.close()
# For manual testing
if __name__ == "__main__":
# if __name__ == "__main__":
# 选题策划和背景素材搜集
# job_generate_topics()