This commit is contained in:
pablonyx 2025-01-29 14:39:48 -08:00 committed by GitHub
parent 766b0f35df
commit d35f93b233
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,6 +50,9 @@ def _create_doc_from_transcript(transcript: dict) -> Document | None:
current_link = ""
current_text = ""
if transcript["sentences"] is None:
return None
for sentence in transcript["sentences"]:
if sentence["speaker_name"] != current_speaker_name:
if current_speaker_name is not None: