Skip to content

Commit

Permalink
title debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed May 9, 2024
1 parent d51ee6f commit 86f7d07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/processors/title_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def process(self, articles: list[FeedArticle]) -> list[FeedArticle]:
for chain in [self.llama3_chain, self.mistral_chain]:
try:
logger.info(f"Processing title {count}/{total}: {article.original_title}")
logger.debug(f"{self.script_hash}|{article.processed}")
# , config={'callbacks': [ConsoleCallbackHandler()]})
result = chain.invoke({"title": article.original_title, "summary": article.description})
article.title = result['title']
Expand Down

0 comments on commit 86f7d07

Please sign in to comment.