Use 29 lines per transcript page; rename ATTENDANCE to PERSONS IN DISCUSSION
This commit is contained in:
@@ -457,7 +457,7 @@ def create_transcript_docx(text: str, filename: str, summary_text: str = ""):
|
|||||||
"""
|
"""
|
||||||
from . import docx_styles
|
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 = []
|
prepared_pages = []
|
||||||
current_page = []
|
current_page = []
|
||||||
line_count = 0
|
line_count = 0
|
||||||
@@ -485,9 +485,9 @@ def create_transcript_docx(text: str, filename: str, summary_text: str = ""):
|
|||||||
if current:
|
if current:
|
||||||
segments.append(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:
|
for seg in segments:
|
||||||
if line_count == 30:
|
if line_count == 29:
|
||||||
prepared_pages.append(current_page)
|
prepared_pages.append(current_page)
|
||||||
current_page = []
|
current_page = []
|
||||||
line_count = 0
|
line_count = 0
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ class SummarizerClient:
|
|||||||
"You will receive several intermediate summaries of a longer conversation. "
|
"You will receive several intermediate summaries of a longer conversation. "
|
||||||
"Produce a single, comprehensive summary using markdown. "
|
"Produce a single, comprehensive summary using markdown. "
|
||||||
"Structure your response with the following sections:\n\n"
|
"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"
|
"- 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"
|
"- 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"
|
"- Keep it concise.\n\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user