voice-changer/server/voice_changer/utils/ModelMerger.py
2023-08-05 03:05:54 +09:00

23 lines
408 B
Python

from typing import Protocol
from const import VoiceChangerType
from dataclasses import dataclass
@dataclass
class MergeElement:
slotIndex: int
strength: int
@dataclass
class ModelMergerRequest:
voiceChangerType: VoiceChangerType
command: str
files: list[MergeElement]
class ModelMerger(Protocol):
@classmethod
def merge_models(cls, request: ModelMergerRequest):
...