Spaces:
Paused
Paused
Update app_srt.py
Browse files- app_srt.py +4 -3
app_srt.py
CHANGED
@@ -554,9 +554,10 @@ def convert_from_srt(filename, video_full, language, split_model, multilingual):
|
|
554 |
|
555 |
filename = filename.name.strip().replace(" ", "")
|
556 |
pre_fun._path_audio_("audio_full.wav", f"./denoised/{split_model}/{filename}/", f"./denoised/{split_model}/{filename}/", "wav")
|
557 |
-
|
558 |
-
|
559 |
-
|
|
|
560 |
if multilingual==False:
|
561 |
for i in subtitle_list:
|
562 |
os.makedirs("output", exist_ok=True)
|
|
|
554 |
|
555 |
filename = filename.name.strip().replace(" ", "")
|
556 |
pre_fun._path_audio_("audio_full.wav", f"./denoised/{split_model}/{filename}/", f"./denoised/{split_model}/{filename}/", "wav")
|
557 |
+
if os.path.isdir("output"):
|
558 |
+
shutil.rmtree("output")
|
559 |
+
if os.path.isdir("sliced"):
|
560 |
+
shutil.rmtree("sliced")
|
561 |
if multilingual==False:
|
562 |
for i in subtitle_list:
|
563 |
os.makedirs("output", exist_ok=True)
|