Fix model name causing duplicate download & variable name error
Browse files
README.md
CHANGED
|
@@ -129,7 +129,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
| 129 |
import torch
|
| 130 |
import soundfile as sf
|
| 131 |
|
| 132 |
-
llasa_1b ='HKUSTAudio/Llasa-
|
| 133 |
|
| 134 |
tokenizer = AutoTokenizer.from_pretrained(llasa_1b)
|
| 135 |
model = AutoModelForCausalLM.from_pretrained(llasa_1b)
|
|
@@ -148,7 +148,7 @@ prompt_wav, sr = sf.read("太乙真人.wav") # you can find wav in Files
|
|
| 148 |
prompt_wav = torch.from_numpy(prompt_wav).float().unsqueeze(0)
|
| 149 |
|
| 150 |
prompt_text ="对,这就是我万人敬仰的太乙真人,虽然有点婴儿肥,但也掩不住我逼人的帅气。"
|
| 151 |
-
#
|
| 152 |
target_text = '突然,身边一阵笑声。我看着他们,意气风发地挺直了胸膛,甩了甩那稍显肉感的双臂,轻笑道:"我身上的肉,是为了掩饰我爆棚的魅力,否则,岂不吓坏了你们呢?"'
|
| 153 |
#target_text = "Dealing with family secrets is never easy. Yet, sometimes, omission is a form of protection, intending to safeguard some from the harsh truths. One day, I hope you understand the reasons behind my actions. Until then, Anna, please, bear with me."
|
| 154 |
input_text = prompt_text + ' ' + target_text
|
|
|
|
| 129 |
import torch
|
| 130 |
import soundfile as sf
|
| 131 |
|
| 132 |
+
llasa_1b ='HKUSTAudio/Llasa-1B'
|
| 133 |
|
| 134 |
tokenizer = AutoTokenizer.from_pretrained(llasa_1b)
|
| 135 |
model = AutoModelForCausalLM.from_pretrained(llasa_1b)
|
|
|
|
| 148 |
prompt_wav = torch.from_numpy(prompt_wav).float().unsqueeze(0)
|
| 149 |
|
| 150 |
prompt_text ="对,这就是我万人敬仰的太乙真人,虽然有点婴儿肥,但也掩不住我逼人的帅气。"
|
| 151 |
+
#prompt_text = "A chance to leave him alone, but... No. She just wanted to see him again. Anna, you don't know how it feels to lose a sister. Anna, I'm sorry, but your father asked me not to tell you anything."
|
| 152 |
target_text = '突然,身边一阵笑声。我看着他们,意气风发地挺直了胸膛,甩了甩那稍显肉感的双臂,轻笑道:"我身上的肉,是为了掩饰我爆棚的魅力,否则,岂不吓坏了你们呢?"'
|
| 153 |
#target_text = "Dealing with family secrets is never easy. Yet, sometimes, omission is a form of protection, intending to safeguard some from the harsh truths. One day, I hope you understand the reasons behind my actions. Until then, Anna, please, bear with me."
|
| 154 |
input_text = prompt_text + ' ' + target_text
|