LAP-DEV commited on
Commit
c2f69b0
·
verified ·
1 Parent(s): edfdbbb

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +5 -1
modules/whisper/whisper_base.py CHANGED
@@ -440,7 +440,7 @@ class WhisperBase(ABC):
440
  add_timestamp: bool
441
  Determines whether to add a timestamp to the end of the filename.
442
  file_format: str
443
- File format to write. Supported formats: [SRT, WebVTT, txt]
444
  output_dir: str
445
  Directory path of the output
446
 
@@ -471,6 +471,10 @@ class WhisperBase(ABC):
471
  content = get_txt(transcribed_segments)
472
  output_path += '.txt'
473
 
 
 
 
 
474
  write_file(content, output_path)
475
  return content, output_path
476
 
 
440
  add_timestamp: bool
441
  Determines whether to add a timestamp to the end of the filename.
442
  file_format: str
443
+ File format to write. Supported formats: [SRT, WebVTT, txt, csv]
444
  output_dir: str
445
  Directory path of the output
446
 
 
471
  content = get_txt(transcribed_segments)
472
  output_path += '.txt'
473
 
474
+ elif file_format == "csv":
475
+ content = get_txt(transcribed_segments)
476
+ output_path += '.csv'
477
+
478
  write_file(content, output_path)
479
  return content, output_path
480