Fix Ollama response handling and strip whitespace from summary

This commit is contained in:
Gigi
2025-03-29 19:14:35 +00:00
parent fdbfebd65d
commit 45ea0764fa

View File

@@ -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."""