Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

✨(summary) relaxed WhisperX response model

Florent Chehab5c27aba00f06
diff --git a/src/summary/summary/core/shared_models.py b/src/summary/summary/core/shared_models.py
index 6ce6f584..b18c81cc 100644
--- a/src/summary/summary/core/shared_models.py
+++ b/src/summary/summary/core/shared_models.py
@@ -40,7 +40,9 @@ class Segment(BaseModel):
title="Segment Text", description="Transcribed text for the segment."
)
words: tuple[WordSegment, ...] | None = Field(
- title="Word Segments", description="List of word segments within the segment."
+ title="Word Segments",
+ description="List of word segments within the segment.",
+ default=None,
)
speaker: str | None = Field(
default=None, title="Speaker", description="Speaker identifier for the segment."
@@ -54,7 +56,9 @@ class WhisperXResponse(BaseModel):
title="Segments", description="List of transcribed segments."
)
word_segments: tuple[WordSegment, ...] = Field(
- title="Word Segments", description="List of word segments."
+ title="Word Segments",
+ description="List of word segments.",
+ default_factory=tuple,
)