diff --git a/hiyoriUI.py b/hiyoriUI.py index 18dd3119b..de378c065 100644 --- a/hiyoriUI.py +++ b/hiyoriUI.py @@ -268,7 +268,7 @@ async def _voice( if len(speaker_piece2) != 2: return { "status": 21, - "detail": f"MIX语法错误", + "detail": "MIX语法错误", } speaker = speaker_piece2[0].strip() lang_pieces = speaker_piece2[1].split("<") @@ -279,13 +279,13 @@ async def _voice( if len(lang_piece2) != 2: return { "status": 21, - "detail": f"MIX语法错误", + "detail": "MIX语法错误", } lang = lang_piece2[0].strip() if lang.upper() not in ["ZH", "EN", "JP"]: return { "status": 21, - "detail": f"MIX语法错误", + "detail": "MIX语法错误", } t = lang_piece2[1] text_language_speakers.append((t, lang.upper(), speaker)) diff --git a/modules.py b/modules.py index b1f89a2f8..dcd6ff7c8 100644 --- a/modules.py +++ b/modules.py @@ -83,7 +83,7 @@ def forward(self, x, x_mask): class DDSConv(nn.Module): """ - Dialted and Depth-Separable Convolution + Dilated and Depth-Separable Convolution """ def __init__(self, channels, kernel_size, n_layers, p_dropout=0.0): diff --git a/train_ms.py b/train_ms.py index 3e827162d..156a548d5 100644 --- a/train_ms.py +++ b/train_ms.py @@ -13,7 +13,6 @@ from config import config import argparse import datetime -import gc logging.getLogger("numba").setLevel(logging.WARNING) import commons