From f3392d80c69fa7638c77986c046e99c03bd989c4 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 21 Jun 2026 01:20:31 +0000 Subject: [PATCH] Use 29 lines per transcript page; rename ATTENDANCE to PERSONS IN DISCUSSION --- scraibe/email_sender.py | 6 +++--- scraibe/summarizer.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scraibe/email_sender.py b/scraibe/email_sender.py index a8c8d48..6d09533 100644 --- a/scraibe/email_sender.py +++ b/scraibe/email_sender.py @@ -457,7 +457,7 @@ def create_transcript_docx(text: str, filename: str, summary_text: str = ""): """ from . import docx_styles - # Step 1: Prepare transcript into pages of 30 lines each + # Step 1: Prepare transcript into pages of 29 lines each prepared_pages = [] current_page = [] line_count = 0 @@ -485,9 +485,9 @@ def create_transcript_docx(text: str, filename: str, summary_text: str = ""): if current: segments.append(current) - # Add segments to pages, enforcing 30 lines per page + # Add segments to pages, enforcing 29 lines per page for seg in segments: - if line_count == 30: + if line_count == 29: prepared_pages.append(current_page) current_page = [] line_count = 0 diff --git a/scraibe/summarizer.py b/scraibe/summarizer.py index e70d70a..49bef6c 100644 --- a/scraibe/summarizer.py +++ b/scraibe/summarizer.py @@ -206,7 +206,7 @@ class SummarizerClient: "You will receive several intermediate summaries of a longer conversation. " "Produce a single, comprehensive summary using markdown. " "Structure your response with the following sections:\n\n" - "1. ATTENDANCE\n" + "1. PERSONS IN DISCUSSION\n" "- List all participants whose names or roles can be identified from the conversation.\n" "- If a name is not given, use their role/position (e.g., Judge, Client, Manager, Witness) or 'Speaker 1', etc.\n" "- Keep it concise.\n\n"