Skip to content

Commit

Permalink
Fix compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
babysor committed Jun 18, 2022
1 parent 6a793ce commit ee643d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mkgui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion mkgui/app_vc.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Input(BaseModel):
description="选择语音转换模型文件."
)
vocoder: vocoders = Field(
..., alias="语音编码模型",
..., alias="语音解码模型",
description="选择语音解码模型文件(目前只支持HifiGan类型)."
)

Expand Down

0 comments on commit ee643d7

Please sign in to comment.