Skip to content

Commit

Permalink
fix wrong number of parameters for calls in main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrank-summit committed Oct 28, 2024
1 parent a4d2487 commit 1a6a1ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions auto_content_creator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def main():
try:
logging.info(f"Generating article on topic: {args.topic}")
# Unpack four returned values
article_content, fact_check_report, research_info, final_article_content = (
generate_article(args.topic)
title, article_content, fact_check_report, research_info, final_article_content = (
generate_article(args.category, args.topic)
)

# Check for research errors
Expand All @@ -26,7 +26,9 @@ def main():

# Save all reports including the research report
article_file, fact_check_file, research_file, final_article_file = save_article(
args.category,
args.topic,
str(title), # Convert title to string to satisfy type hint
article_content,
fact_check_report,
final_article_content,
Expand All @@ -44,6 +46,5 @@ def main():
print(f"An error occurred: {str(e)}")
sys.exit(1)


if __name__ == "__main__":
main()

0 comments on commit 1a6a1ef

Please sign in to comment.