Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
kevinwang676/ChatGLM-Bert-VITS2
kevinwang676
/
ChatGLM2-VITS2-Colab
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
ChatGLM2-VITS2-Colab
/
text
/
english_bert_mock.py
kevinwang676
Upload folder using huggingface_hub
8a1292d
almost 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
100 Bytes
import
torch
def
get_bert_feature
(
norm_text, word2ph
):
return
torch.zeros(
1024
,
sum
(word2ph))