Spaces:
Sleeping
Sleeping
When using the Translation Model for translation, the subtitles displayed on the frontend will be changed to a bilingual version.
Browse files
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()
|