avans06 commited on
Commit
86a43ad
1 Parent(s): 1e744c4

When using the Translation Model for translation, the subtitles displayed on the frontend will be changed to a bilingual version.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -708,7 +708,7 @@ class WhisperTranscriber:
708
  if srt_bilingual is not None and len(srt_bilingual) > 0:
709
  output_files.append(self.__create_file(srt_bilingual, output_dir, source_name + "-bilingual.srt"));
710
 
711
- return output_files, text, vtt
712
 
713
  def clear_cache(self):
714
  self.model_cache.clear()
 
708
  if srt_bilingual is not None and len(srt_bilingual) > 0:
709
  output_files.append(self.__create_file(srt_bilingual, output_dir, source_name + "-bilingual.srt"));
710
 
711
+ return output_files, text, srt_bilingual if srt_bilingual is not None and len(srt_bilingual) > 0 else vtt
712
 
713
  def clear_cache(self):
714
  self.model_cache.clear()