[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(
|
||||
text=text,
|
||||
language=request.language,
|
||||
duration=str(duration_s),
|
||||
duration=duration_s,
|
||||
segments=total_segments,
|
||||
),
|
||||
)
|
||||
@@ -658,7 +658,7 @@ class SpeechToTextBaseServing(GenerateBaseServing):
|
||||
TranslationResponseVerbose(
|
||||
text=text,
|
||||
language=request.language,
|
||||
duration=str(duration_s),
|
||||
duration=duration_s,
|
||||
segments=total_segments,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user