From 83ca6613fb4b742f41695dad0170447bb5e12a84 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 5 Jun 2025 18:35:35 +0200 Subject: [PATCH] Strip returned title and summary suggestions --- prophet/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prophet/app.py b/prophet/app.py index c30a8e9..7588f76 100644 --- a/prophet/app.py +++ b/prophet/app.py @@ -116,7 +116,7 @@ def rewrite_title_with_groq(original_content: str) -> str: winner_str = winner.choices[0].message.content if not winner_str: raise ValueError - return winner_str + return winner_str.strip(" \"'") def rewrite_summary_with_groq(orig: Original, improved_title: str) -> str: @@ -135,7 +135,7 @@ def rewrite_summary_with_groq(orig: Original, improved_title: str) -> str: if not summary_str: raise ValueError print("Improved summary", summary_str) - return summary_str + return summary_str.strip(" \"'") app = FastAPI()