update
Browse files- modeling_minicpmo.py +1 -1
modeling_minicpmo.py
CHANGED
|
@@ -152,7 +152,7 @@ class MiniCPMO(MiniCPMOPreTrainedModel):
|
|
| 152 |
tts_text_tokenizer_path = os.path.join(self.config._name_or_path, "assets/chattts_tokenizer")
|
| 153 |
if not os.path.exists(tts_text_tokenizer_path):
|
| 154 |
# try from hf model_id
|
| 155 |
-
tts_text_tokenizer_path = "
|
| 156 |
|
| 157 |
tts_text_tokenizer = BertTokenizerFast.from_pretrained(tts_text_tokenizer_path)
|
| 158 |
self.tts_processor = ChatTTSProcessor(text_tokenizer=tts_text_tokenizer)
|
|
|
|
| 152 |
tts_text_tokenizer_path = os.path.join(self.config._name_or_path, "assets/chattts_tokenizer")
|
| 153 |
if not os.path.exists(tts_text_tokenizer_path):
|
| 154 |
# try from hf model_id
|
| 155 |
+
tts_text_tokenizer_path = "openbmb/chattts_tokenizer"
|
| 156 |
|
| 157 |
tts_text_tokenizer = BertTokenizerFast.from_pretrained(tts_text_tokenizer_path)
|
| 158 |
self.tts_processor = ChatTTSProcessor(text_tokenizer=tts_text_tokenizer)
|