Fix syntax error in speaker identification prompt string
Mirror and run GitLab CI / build (push) Has been cancelled
Ruff / ruff (push) Has been cancelled

This commit is contained in:
admin
2026-06-16 16:05:02 +00:00
parent 604bfa3f41
commit 0c0e52dfb8
+11 -12
View File
@@ -328,18 +328,17 @@ def process_transcription_task(
prompt = (
"Below is a transcript with speaker labels like 'SPEAKER 1', 'SPEAKER 2', etc. "
"Based on the context and how each speaker talks, identify each speaker as:
" "- Their real name, if it is clearly mentioned or strongly implied, OR
" "- A concise role/position (e.g., Judge, Doctor, Manager, Interviewer, Client, Witness), "
"if their identity is not clear.
" "Do not invent random personal names. "
"Do not add extra commentary. Output ONLY a mapping in this exact format, one per line:
" "SPEAKER 1: Name or Role
" "SPEAKER 2: Name or Role
" "SPEAKER 3: Name or Role
" "\n"
"Transcript:
"
"Based on the context and how each speaker talks, identify each speaker as:\n"
"- Their real name, if it is clearly mentioned or strongly implied, OR\n"
"- A concise role/position (e.g., Judge, Doctor, Manager, Interviewer, Client, Witness), "
"if their identity is not clear.\n"
"Do not invent random personal names. "
"Do not add extra commentary. Output ONLY a mapping in this exact format, one per line:\n"
"SPEAKER 1: Name or Role\n"
"SPEAKER 2: Name or Role\n"
"SPEAKER 3: Name or Role\n"
"\n"
"Transcript:\n"
+ transcript_text
)