Update modules/whisper/faster_whisper_inference.py
Browse files
modules/whisper/faster_whisper_inference.py
CHANGED
@@ -40,7 +40,7 @@ class FasterWhisperInference(WhisperBase):
|
|
40 |
audio: Union[str, BinaryIO, np.ndarray],
|
41 |
progress: gr.Progress = gr.Progress(),
|
42 |
*whisper_params,
|
43 |
-
) -> Tuple[List[
|
44 |
"""
|
45 |
transcribe method for faster-whisper.
|
46 |
|
@@ -55,7 +55,7 @@ class FasterWhisperInference(WhisperBase):
|
|
55 |
|
56 |
Returns
|
57 |
----------
|
58 |
-
segments_result: List[
|
59 |
list of Segment that includes start, end timestamps and transcribed text
|
60 |
elapsed_time: float
|
61 |
elapsed time for transcription
|
|
|
40 |
audio: Union[str, BinaryIO, np.ndarray],
|
41 |
progress: gr.Progress = gr.Progress(),
|
42 |
*whisper_params,
|
43 |
+
) -> Tuple[List[dict], float]:
|
44 |
"""
|
45 |
transcribe method for faster-whisper.
|
46 |
|
|
|
55 |
|
56 |
Returns
|
57 |
----------
|
58 |
+
segments_result: List[dict]
|
59 |
list of Segment that includes start, end timestamps and transcribed text
|
60 |
elapsed_time: float
|
61 |
elapsed time for transcription
|