From 572587bb85b8cd6fd6c5a52db2865c0bb3953142 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 14 Jun 2026 20:43:37 +0000 Subject: [PATCH] Fix syntax error in tasks.py speaker identification prompt --- scraibe/tasks.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scraibe/tasks.py b/scraibe/tasks.py index 74f099b..03ac706 100644 --- a/scraibe/tasks.py +++ b/scraibe/tasks.py @@ -307,13 +307,13 @@ def process_transcription_task( prompt = ( "Below is a transcript with speaker labels like 'SPEAKER 1', 'SPEAKER 2', etc. " "Based on how they speak and the context, suggest realistic names for each speaker. " - "Do not add extra commentary. Output ONLY a mapping in this exact format, one per line: -SPEAKER 1: Suggested Name -SPEAKER 2: Suggested Name -SPEAKER 3: Suggested Name - -Transcript: -" + transcript_text + "Do not add extra commentary. Output ONLY a mapping in this exact format, one per line:\n" + "SPEAKER 1: Suggested Name\n" + "SPEAKER 2: Suggested Name\n" + "SPEAKER 3: Suggested Name\n" + "\n" + "Transcript:\n" + + transcript_text ) response = summarizer._chat_completion(