mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-05 20:49:48 +02:00
k (#3838)
This commit is contained in:
parent
766b0f35df
commit
d35f93b233
@ -50,6 +50,9 @@ def _create_doc_from_transcript(transcript: dict) -> Document | None:
|
|||||||
current_link = ""
|
current_link = ""
|
||||||
current_text = ""
|
current_text = ""
|
||||||
|
|
||||||
|
if transcript["sentences"] is None:
|
||||||
|
return None
|
||||||
|
|
||||||
for sentence in transcript["sentences"]:
|
for sentence in transcript["sentences"]:
|
||||||
if sentence["speaker_name"] != current_speaker_name:
|
if sentence["speaker_name"] != current_speaker_name:
|
||||||
if current_speaker_name is not None:
|
if current_speaker_name is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user