Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,14 +17,16 @@ def list_files_tree(directory, indent=""):
|
|
17 |
|
18 |
from huggingface_hub import snapshot_download
|
19 |
print("Models...")
|
20 |
-
|
|
|
21 |
print("Models!!!")
|
22 |
print("PretrainedModels...")
|
23 |
-
|
|
|
24 |
print("PretrainedModels!!!")
|
25 |
list_files_tree("./")
|
26 |
-
cnhubert_base_path = "PretrainedModels/
|
27 |
-
bert_path = "PretrainedModels/
|
28 |
|
29 |
import gradio as gr
|
30 |
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
|
|
17 |
|
18 |
from huggingface_hub import snapshot_download
|
19 |
print("Models...")
|
20 |
+
model_id = "None1145/GPT-SoVITS-Lappland-the-Decadenza"
|
21 |
+
snapshot_download(repo_id=model_id, local_dir=f"./Models/{model_id}")
|
22 |
print("Models!!!")
|
23 |
print("PretrainedModels...")
|
24 |
+
model_id = "None1145/GPT-SoVITS-Base"
|
25 |
+
snapshot_download(repo_id=model_id, local_dir=f"./PretrainedModels/{model_id}")
|
26 |
print("PretrainedModels!!!")
|
27 |
list_files_tree("./")
|
28 |
+
cnhubert_base_path = f"./PretrainedModels/{model_id}/chinese-hubert-base"
|
29 |
+
bert_path = f"./PretrainedModels/{model_id}/chinese-roberta-wwm-ext-large"
|
30 |
|
31 |
import gradio as gr
|
32 |
from transformers import AutoModelForMaskedLM, AutoTokenizer
|