Correct example
Browse files
README.md
CHANGED
@@ -19,8 +19,8 @@ import torch
|
|
19 |
|
20 |
model_name = "BricksDisplay/ellie-Bert-VITS2"
|
21 |
|
22 |
-
model = AutoModel.from_pretrained(model_name,
|
23 |
-
processor = AutoProcessor.from_pretrained(model_name,
|
24 |
|
25 |
with torch.no_grad():
|
26 |
inputs = processor("你好", language="zh", return_tensors="pt")
|
|
|
19 |
|
20 |
model_name = "BricksDisplay/ellie-Bert-VITS2"
|
21 |
|
22 |
+
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
|
23 |
+
processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
|
24 |
|
25 |
with torch.no_grad():
|
26 |
inputs = processor("你好", language="zh", return_tensors="pt")
|