mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-02 16:23:58 +03:00
WIP:common sample
This commit is contained in:
parent
4f427d5700
commit
b84ae93511
4
client/demo/dist/index.js
vendored
4
client/demo/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -26,7 +26,8 @@ export const MergeLabDialog = () => {
|
|||||||
const key = `${cur.modelType},${cur.samplingRate},${cur.embChannels}`
|
const key = `${cur.modelType},${cur.samplingRate},${cur.embChannels}`
|
||||||
const val = { type: cur.modelType, samplingRate: cur.samplingRate, embChannels: cur.embChannels }
|
const val = { type: cur.modelType, samplingRate: cur.samplingRate, embChannels: cur.embChannels }
|
||||||
const existKeys = Object.keys(prev)
|
const existKeys = Object.keys(prev)
|
||||||
if (cur.modelFile.length == 0) {
|
console.log("modelFi;e:::::::::::::::::::", cur.modelFile)
|
||||||
|
if (!cur.modelFile || cur.modelFile.length == 0) {
|
||||||
return prev
|
return prev
|
||||||
}
|
}
|
||||||
if (cur.modelType == "onnxRVC" || cur.modelType == "onnxRVCNono") {
|
if (cur.modelType == "onnxRVC" || cur.modelType == "onnxRVCNono") {
|
||||||
|
@ -22,7 +22,7 @@ export const ModelSlotArea = (_props: ModelSlotAreaProps) => {
|
|||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
return serverSetting.serverSetting.modelSlots.map((x, index) => {
|
return serverSetting.serverSetting.modelSlots.map((x, index) => {
|
||||||
if (x.modelFile.length == 0) {
|
if (!x.modelFile || x.modelFile.length == 0) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const tileContainerClass = index == serverSetting.serverSetting.modelSlotIndex ? "model-slot-tile-container-selected" : "model-slot-tile-container"
|
const tileContainerClass = index == serverSetting.serverSetting.modelSlotIndex ? "model-slot-tile-container-selected" : "model-slot-tile-container"
|
||||||
|
@ -146,10 +146,7 @@ class VoiceChanger:
|
|||||||
def get_info(self):
|
def get_info(self):
|
||||||
data = asdict(self.settings)
|
data = asdict(self.settings)
|
||||||
if self.voiceChanger is not None:
|
if self.voiceChanger is not None:
|
||||||
print("------------------ self.voiceChanger is not None")
|
|
||||||
data.update(self.voiceChanger.get_info())
|
data.update(self.voiceChanger.get_info())
|
||||||
else:
|
|
||||||
print("------------------ self.voiceChanger is None")
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def get_performance(self):
|
def get_performance(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user