mirror of
https://github.com/JarodMica/ai-voice-cloning.git
synced 2025-06-07 06:05:52 -04:00
fix a bug if .pth files present in voices folder for transcription
This commit is contained in:
parent
07b67ec20b
commit
ed1a1b5691
1 changed files with 3 additions and 0 deletions
|
@ -343,6 +343,9 @@ def transcribe_other_language_proxy(voice, language, chunk_size, continuation_di
|
|||
from modules.tortoise_dataset_tools.audio_conversion_tools.split_long_file import get_duration, process_folder
|
||||
chosen_directory = os.path.join("./voices", voice)
|
||||
items = os.listdir(chosen_directory)
|
||||
for file in items:
|
||||
if file.endswith(".pth"):
|
||||
items.remove(file)
|
||||
|
||||
# In case of sudden restart, removes this intermediary file used for rename
|
||||
for file in items:
|
||||
|
|
Loading…
Add table
Reference in a new issue