mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-24 05:55:01 +03:00
23 lines
407 B
Python
23 lines
407 B
Python
|
from typing import Protocol
|
||
|
from const import VoiceChangerType
|
||
|
from dataclasses import dataclass
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class MergeElement:
|
||
|
filename: str
|
||
|
strength: int
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class ModelMergerRequest:
|
||
|
voiceChangerType: VoiceChangerType
|
||
|
command: str
|
||
|
files: list[MergeElement]
|
||
|
|
||
|
|
||
|
class ModelMerger(Protocol):
|
||
|
@classmethod
|
||
|
def merge_models(cls, request: ModelMergerRequest):
|
||
|
...
|