mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
refactor: remove filename from merge req
This commit is contained in:
parent
aef9d2c34b
commit
c08099a512
2
client/demo/dist/index.js
vendored
2
client/demo/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -107,7 +107,7 @@ export const MergeLabDialog = () => {
|
||||
const onMergeElementsChanged = (slotIndex: number, strength: number) => {
|
||||
const newMergeElements = mergeElements.map((x) => {
|
||||
if (x.slotIndex == slotIndex) {
|
||||
return { slotIndex: x.slotIndex, filename: x.filename, strength: strength };
|
||||
return { slotIndex: x.slotIndex, strength: strength };
|
||||
} else {
|
||||
return x;
|
||||
}
|
||||
|
@ -540,7 +540,6 @@ export type OnnxExporterInfo = {
|
||||
// Merge
|
||||
export type MergeElement = {
|
||||
slotIndex: number
|
||||
filename: string // 一意性は保障されない場合がある(フォルダコピーされたときとか)
|
||||
strength: number
|
||||
}
|
||||
export type MergeModelRequest = {
|
||||
|
@ -6,7 +6,6 @@ from dataclasses import dataclass
|
||||
@dataclass
|
||||
class MergeElement:
|
||||
slotIndex: int
|
||||
filename: str
|
||||
strength: int
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user