diff --git a/llm/generate_daily_article.py b/llm/generate_daily_article.py index 8728ebf..1fed230 100644 --- a/llm/generate_daily_article.py +++ b/llm/generate_daily_article.py @@ -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) diff --git a/llm/generate_podcast.py b/llm/generate_podcast.py index dd5ddff..ba5fe98 100644 --- a/llm/generate_podcast.py +++ b/llm/generate_podcast.py @@ -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}") diff --git a/scheduler/job_story_portal.py b/scheduler/job_story_portal.py index 8ae590e..29381ee 100644 --- a/scheduler/job_story_portal.py +++ b/scheduler/job_story_portal.py @@ -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() \ No newline at end of file + # job_generate_daily_article() \ No newline at end of file diff --git a/scheduler/jobs.py b/scheduler/jobs.py index 9ca9a93..e1035d2 100644 --- a/scheduler/jobs.py +++ b/scheduler/jobs.py @@ -278,7 +278,7 @@ def job_synthesize_podcast_audio(): db.close() # For manual testing -if __name__ == "__main__": +# if __name__ == "__main__": # 选题策划和背景素材搜集 # job_generate_topics()