diff --git a/core.py b/core.py index f45edb4e..1fa04c55 100644 --- a/core.py +++ b/core.py @@ -351,7 +351,7 @@ def run_tts_script( tts_script_path = os.path.join("rvc", "lib", "tools", "tts.py") - if os.path.exists(output_tts_path): + if os.path.exists(output_tts_path) and os.path.abspath(output_tts_path).startswith(os.path.abspath("assets")): os.remove(output_tts_path) command_tts = [