From c8e8bc0decd0d599286ff79f3a904a68c642478c Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 21 Jun 2026 14:39:06 +0000 Subject: [PATCH] Update cover page: reduce top blank lines, add 'Transcript created on:', use 'Transcribed by', update disclaimer --- scraibe/docx_cover.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/scraibe/docx_cover.py b/scraibe/docx_cover.py index 5edaeda..1f17011 100644 --- a/scraibe/docx_cover.py +++ b/scraibe/docx_cover.py @@ -2,12 +2,13 @@ Cover-page generator for transcript and summary DOCX files. Layout (all centered): -- 3 blank lines +- 1 blank line - Title in uppercase: "TRANSCRIPT" or "SUMMARY" -- Next line: date of transcription (e.g. "June 19, 2026") +- Next line: "Transcript created on: [date]" - Next line: "Transcribed by " - 2 blank lines - Disclaimer (underlined) +- Disclaimer body - Page break (ensures content starts on page 2) Environment variables: @@ -75,8 +76,8 @@ def add_cover_page( if not provided, uses current server time in SERVER_TIMEZONE. """ - # 3 blank lines - _add_blank_lines(doc, 3) + # 1 blank line (removed two from top) + _add_blank_lines(doc, 1) # Title in uppercase _add_centered_paragraph(doc, text=title.upper().strip(), font_size=Pt(18), bold=True) @@ -86,7 +87,7 @@ def add_cover_page( tz = _get_server_timezone() now = datetime.now(tz) date_str = now.strftime("%B %d, %Y") - _add_centered_paragraph(doc, text=date_str, font_size=Pt(14)) + _add_centered_paragraph(doc, text=f"Transcript created on: {date_str}", font_size=Pt(14)) # Transcribed by + organization org = (os.getenv("COVER_PAGE_ORGANIZATION") or "").strip() @@ -99,7 +100,11 @@ def add_cover_page( # Disclaimer: only the word "Disclaimer" is underlined disclaimer_title = "Disclaimer" disclaimer_body = ( - "This transcription and any summary derived therefrom may contain errors or inaccuracies." + "This transcription and any summary derived therefrom are created entirely by large language models. " + "Large language models are imperfect and may create errors or inaccuracies. " + "The following transcription and summary (if applicable) are designed to assist users. " + "They are not a conclusive record or summary of what transpired in an audio recording. " + "Use at your own risk." ) # Underlined "Disclaimer" line