voice-changer/server/voice_changer/RVC/modelMerger/MergeModelRequest.py

20 lines
375 B
Python
Raw Normal View History

2023-04-30 20:34:01 +03:00
from dataclasses import dataclass, field
from typing import List
from dataclasses_json import dataclass_json
@dataclass_json
@dataclass
class MergeFile:
filename: str
strength: int
@dataclass_json
@dataclass
class MergeModelRequest:
command: str = ""
slot: int = -1
2023-05-01 10:26:56 +03:00
defaultTrans: int = 0
2023-04-30 20:34:01 +03:00
files: List[MergeFile] = field(default_factory=lambda: [])