diff --git a/mkgui/app.py b/mkgui/app.py index 630dee1f..259ff430 100644 --- a/mkgui/app.py +++ b/mkgui/app.py @@ -11,7 +11,7 @@ from mkgui.base.components.types import FileContent from vocoder.hifigan import inference as gan_vocoder from synthesizer.inference import Synthesizer -from typing import Any +from typing import Any, Tuple import matplotlib.pyplot as plt # Constants @@ -73,7 +73,7 @@ class AudioEntity(BaseModel): mel: Any class Output(BaseModel): - __root__: tuple[AudioEntity, AudioEntity] + __root__: Tuple[AudioEntity, AudioEntity] def render_output_ui(self, streamlit_app, input) -> None: # type: ignore """Custom output UI. diff --git a/mkgui/app_vc.py b/mkgui/app_vc.py index 3e4c793f..2f658ac5 100644 --- a/mkgui/app_vc.py +++ b/mkgui/app_vc.py @@ -71,7 +71,7 @@ class Input(BaseModel): description="选择语音转换模型文件." ) vocoder: vocoders = Field( - ..., alias="语音编码模型", + ..., alias="语音解码模型", description="选择语音解码模型文件(目前只支持HifiGan类型)." )