mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 20:59:05 +00:00
server/www: rename topic text field to transcript
This aleviate the current issue with vercel deployment
This commit is contained in:
@@ -63,7 +63,7 @@ class TranscriptTopic(BaseModel):
|
||||
summary: str
|
||||
timestamp: float
|
||||
duration: float | None = 0
|
||||
text: str | None = None
|
||||
transcript: str | None = None
|
||||
words: list[ProcessorWord] = []
|
||||
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ class PipelineMainBase(PipelineRunner):
|
||||
title=data.title,
|
||||
summary=data.summary,
|
||||
timestamp=data.timestamp,
|
||||
text=data.transcript.text,
|
||||
transcript=data.transcript.text,
|
||||
words=data.transcript.words,
|
||||
)
|
||||
if isinstance(data, TitleSummaryWithIdProcessorType):
|
||||
|
||||
@@ -121,7 +121,7 @@ class GetTranscriptTopic(BaseModel):
|
||||
title: str
|
||||
summary: str
|
||||
timestamp: float
|
||||
text: str
|
||||
transcript: str
|
||||
segments: list[GetTranscriptSegmentTopic] = []
|
||||
|
||||
@classmethod
|
||||
@@ -154,7 +154,7 @@ class GetTranscriptTopic(BaseModel):
|
||||
title=topic.title,
|
||||
summary=topic.summary,
|
||||
timestamp=topic.timestamp,
|
||||
text=text,
|
||||
transcript=text,
|
||||
segments=segments,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user