voice-changer/server/voice_changer/utils/ModelMerger.py

23 lines
408 B
Python
Raw Permalink Normal View History

2023-06-23 08:54:39 +03:00
from typing import Protocol
from const import VoiceChangerType
from dataclasses import dataclass
@dataclass
class MergeElement:
2023-08-04 21:02:43 +03:00
slotIndex: int
2023-06-23 08:54:39 +03:00
strength: int
@dataclass
class ModelMergerRequest:
voiceChangerType: VoiceChangerType
command: str
files: list[MergeElement]
class ModelMerger(Protocol):
@classmethod
def merge_models(cls, request: ModelMergerRequest):
...