Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from transformers import AutoModel, AutoTokenizer
|
2 |
|
3 |
|
4 |
import json
|
@@ -21,12 +21,12 @@ from so_vits_svc_fork.inference.core import Svc
|
|
21 |
|
22 |
|
23 |
# Get the Hugging Face token from the environment variable
|
24 |
-
token = os.getenv('HF_TOKEN')
|
25 |
|
26 |
# Instantiate the Hugging Face model
|
27 |
-
model_names = ["nijisakai/JayChou","nijisakai/sunyanzi","nijisakai/linyilian","nijisakai/wangjie"]
|
28 |
#tokenizers = ["nijisakai/JayChou","nijisakai/sunyanzi","nijisakai/linyilian","nijisakai/wangjie"]
|
29 |
-
models = [AutoModel.from_pretrained(model_name, use_auth_token=token) for model_name in model_names]
|
30 |
|
31 |
|
32 |
|
@@ -38,7 +38,7 @@ models = [AutoModel.from_pretrained(model_name, use_auth_token=token) for model_
|
|
38 |
# REPLACE THESE VALUES TO CHANGE THE MODEL REPO/CKPT NAME/SETTINGS
|
39 |
###################################################################
|
40 |
# The Hugging Face Hub repo ID - 在这里修改repo_id,可替换成任何已经训练好的模型!
|
41 |
-
repo_ids = ["nijisakai/
|
42 |
|
43 |
# If None, Uses latest ckpt in the repo
|
44 |
ckpt_name = None
|
|
|
1 |
+
#from transformers import AutoModel, AutoTokenizer
|
2 |
|
3 |
|
4 |
import json
|
|
|
21 |
|
22 |
|
23 |
# Get the Hugging Face token from the environment variable
|
24 |
+
#token = os.getenv('HF_TOKEN')
|
25 |
|
26 |
# Instantiate the Hugging Face model
|
27 |
+
#model_names = ["nijisakai/JayChou","nijisakai/sunyanzi","nijisakai/linyilian","nijisakai/wangjie"]
|
28 |
#tokenizers = ["nijisakai/JayChou","nijisakai/sunyanzi","nijisakai/linyilian","nijisakai/wangjie"]
|
29 |
+
#models = [AutoModel.from_pretrained(model_name, use_auth_token=token) for model_name in model_names]
|
30 |
|
31 |
|
32 |
|
|
|
38 |
# REPLACE THESE VALUES TO CHANGE THE MODEL REPO/CKPT NAME/SETTINGS
|
39 |
###################################################################
|
40 |
# The Hugging Face Hub repo ID - 在这里修改repo_id,可替换成任何已经训练好的模型!
|
41 |
+
repo_ids = ["nijisakai/testzjl","nijisakai/testsyz","nijisakai/testlyl","nijisakai/testwj","nijisakai/Eric_Cartman"]
|
42 |
|
43 |
# If None, Uses latest ckpt in the repo
|
44 |
ckpt_name = None
|