[Bugfix][Frontend] Return transcription and translation verbose as float (#49073)
Signed-off-by: Lucas Christian <lucaschgf7@gmail.com>
This commit is contained in:
@@ -644,7 +644,7 @@ class SpeechToTextBaseServing(GenerateBaseServing):
|
|||||||
TranscriptionResponseVerbose(
|
TranscriptionResponseVerbose(
|
||||||
text=text,
|
text=text,
|
||||||
language=request.language,
|
language=request.language,
|
||||||
duration=str(duration_s),
|
duration=duration_s,
|
||||||
segments=total_segments,
|
segments=total_segments,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@@ -658,7 +658,7 @@ class SpeechToTextBaseServing(GenerateBaseServing):
|
|||||||
TranslationResponseVerbose(
|
TranslationResponseVerbose(
|
||||||
text=text,
|
text=text,
|
||||||
language=request.language,
|
language=request.language,
|
||||||
duration=str(duration_s),
|
duration=duration_s,
|
||||||
segments=total_segments,
|
segments=total_segments,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -384,7 +384,7 @@ class TranscriptionSegment(OpenAIBaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class TranscriptionResponseVerbose(OpenAIBaseModel):
|
class TranscriptionResponseVerbose(OpenAIBaseModel):
|
||||||
duration: str
|
duration: float
|
||||||
"""The duration of the input audio."""
|
"""The duration of the input audio."""
|
||||||
|
|
||||||
language: str
|
language: str
|
||||||
|
|||||||
@@ -357,7 +357,7 @@ class TranslationSegment(OpenAIBaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class TranslationResponseVerbose(OpenAIBaseModel):
|
class TranslationResponseVerbose(OpenAIBaseModel):
|
||||||
duration: str
|
duration: float
|
||||||
"""The duration of the input audio."""
|
"""The duration of the input audio."""
|
||||||
|
|
||||||
language: str
|
language: str
|
||||||
|
|||||||
Reference in New Issue
Block a user