From 45ea0764fae8df4631c36a98b00268035be961d2 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sat, 29 Mar 2025 19:14:35 +0000 Subject: [PATCH] Fix Ollama response handling and strip whitespace from summary --- summarize_transcripts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/summarize_transcripts.py b/summarize_transcripts.py index be0eb16..141eae6 100755 --- a/summarize_transcripts.py +++ b/summarize_transcripts.py @@ -39,7 +39,8 @@ def process_transcript(transcript_text: str) -> str: } ]) - return response['message']['content'] + # Extract the content from the response + return response['message']['content'].strip() def save_summary(summary: str, output_file: Path) -> None: """Save the summary to a file."""