Spaces:
Runtime error
Runtime error
Download text/english_bert_mock.py from awacke1/Multi-Voice-Clone-Chinese-TTS: direct link, hf CLI and curl.
- Browser
- Download file 100 Bytes
-
https://huggingface.co/spaces/awacke1/Multi-Voice-Clone-Chinese-TTS/resolve/main/text/english_bert_mock.py
- Command line
-
hf download hf://spaces/awacke1/Multi-Voice-Clone-Chinese-TTS/text/english_bert_mock.py
-
curl -L -o english_bert_mock.py https://huggingface.co/spaces/awacke1/Multi-Voice-Clone-Chinese-TTS/resolve/main/text/english_bert_mock.py
100 Bytes
| import torch | |
| def get_bert_feature(norm_text, word2ph): | |
| return torch.zeros(1024, sum(word2ph)) | |