repaire sentences
This commit is contained in:
@@ -185,6 +185,23 @@ class SentenceBoundaryAdjust(BaseModel):
|
||||
delta_ms: int = Field(ge=-10_000, le=10_000)
|
||||
|
||||
|
||||
class SentenceGapRepairRequest(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
min_gap_ms: int = Field(default=8000, ge=2000, le=180_000)
|
||||
|
||||
|
||||
class SentenceGapRepairResponse(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
video_hash: str
|
||||
min_gap_ms: int = Field(ge=1)
|
||||
gap_count: int = Field(ge=0)
|
||||
transcribed_gaps: int = Field(ge=0)
|
||||
inserted_count: int = Field(ge=0)
|
||||
sentence_count: int = Field(ge=0)
|
||||
|
||||
|
||||
class TextSubstitution(BaseModel):
|
||||
expected: str
|
||||
actual: str
|
||||
|
||||
Reference in New Issue
Block a user