LAP-DEV commited on
Commit
07aa6cd
·
verified ·
1 Parent(s): df16006

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[Segment], float]:
44
  """
45
  transcribe method for faster-whisper.
46
 
@@ -55,7 +55,7 @@ class FasterWhisperInference(WhisperBase):
55
 
56
  Returns
57
  ----------
58
- segments_result: List[Segment]
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