Skip to content

Commit

Permalink
Merge pull request #16 from autonomys/python-fix
Browse files Browse the repository at this point in the history
Fix python implementation
  • Loading branch information
jfrank-summit authored Oct 29, 2024
2 parents a4d2487 + 1a6a1ef commit 6e09eb3
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 6e09eb3

Please sign in to comment.