From 160cef0186f9680e84c50c71ab13837ebfd7f22b Mon Sep 17 00:00:00 2001 From: yoesak Date: Fri, 19 Apr 2024 11:21:06 +0700 Subject: [PATCH] Fixing, when gradio download encodec model, will be save on default folder on the folder from the argument --- gradio_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradio_app.py b/gradio_app.py index 2099c4a..475f5da 100644 --- a/gradio_app.py +++ b/gradio_app.py @@ -99,7 +99,7 @@ def load_models(whisper_backend_name, whisper_model_name, alignment_model_name, encodec_fn = f"{MODELS_PATH}/encodec_4cb2048_giga.th" if not os.path.exists(encodec_fn): - os.system(f"wget https://huggingface.co/pyp1/VoiceCraft/resolve/main/encodec_4cb2048_giga.th") + os.system(f"wget https://huggingface.co/pyp1/VoiceCraft/resolve/main/encodec_4cb2048_giga.th -O " + encodec_fn) voicecraft_model = { "config": config,