Przeglądaj źródła

Update common.py

0xCAFEBABE0 11 miesięcy temu
rodzic
commit
bcc58cb4cb
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      cosyvoice/utils/common.py

+ 1 - 0
cosyvoice/utils/common.py

@@ -161,6 +161,7 @@ def is_only_punctuation(text):
     punctuation_pattern = r'^[\p{P}\p{S}]*$'
     return bool(regex.fullmatch(punctuation_pattern, text))
 
+
 def mask_to_bias(mask: torch.Tensor, dtype: torch.dtype) -> torch.Tensor:
     assert mask.dtype == torch.bool
     assert dtype in [torch.float32, torch.bfloat16, torch.float16]