Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,16 +23,6 @@ import numpy as np
|
|
23 |
from huggingface_hub import hf_hub_download
|
24 |
|
25 |
if True:
|
26 |
-
model_path = "./F5-TTS/ckpts/v2c/"
|
27 |
-
|
28 |
-
if not os.path.exists(model_path):
|
29 |
-
os.makedirs(model_path)
|
30 |
-
|
31 |
-
file_path = hf_hub_download(repo_id="lshzhm/DeepAudio-V1", filename="v2c_s44.pt", local_dir=model_path)
|
32 |
-
|
33 |
-
print(f"Model saved at: {file_path}")
|
34 |
-
|
35 |
-
|
36 |
model_path = "./MMAudio/weights/"
|
37 |
|
38 |
file_path = hf_hub_download(repo_id="lshzhm/DeepAudio-V1", filename="MMAudio/mmaudio_small_44k.pth", local_dir=model_path)
|
@@ -46,6 +36,16 @@ if True:
|
|
46 |
file_path = hf_hub_download(repo_id="lshzhm/DeepAudio-V1", filename="MMAudio/synchformer_state_dict.pth", local_dir=model_path)
|
47 |
print(f"Model saved at: {file_path}")
|
48 |
shutil.move("./MMAudio/ext_weights/MMAudio/*", "./MMAudio/ext_weights/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
log = logging.getLogger()
|
51 |
|
|
|
23 |
from huggingface_hub import hf_hub_download
|
24 |
|
25 |
if True:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
model_path = "./MMAudio/weights/"
|
27 |
|
28 |
file_path = hf_hub_download(repo_id="lshzhm/DeepAudio-V1", filename="MMAudio/mmaudio_small_44k.pth", local_dir=model_path)
|
|
|
36 |
file_path = hf_hub_download(repo_id="lshzhm/DeepAudio-V1", filename="MMAudio/synchformer_state_dict.pth", local_dir=model_path)
|
37 |
print(f"Model saved at: {file_path}")
|
38 |
shutil.move("./MMAudio/ext_weights/MMAudio/*", "./MMAudio/ext_weights/")
|
39 |
+
|
40 |
+
|
41 |
+
model_path = "./F5-TTS/ckpts/v2c/"
|
42 |
+
|
43 |
+
if not os.path.exists(model_path):
|
44 |
+
os.makedirs(model_path)
|
45 |
+
|
46 |
+
file_path = hf_hub_download(repo_id="lshzhm/DeepAudio-V1", filename="v2c_s44.pt", local_dir=model_path)
|
47 |
+
|
48 |
+
print(f"Model saved at: {file_path}")
|
49 |
|
50 |
log = logging.getLogger()
|
51 |
|