Update fileURL in runVITS to Use localModelPath

This commit is contained in:
kwaroran
2024-01-06 23:21:38 +09:00
parent 229d974d75
commit ecbbc8e85c

View File

@@ -120,7 +120,7 @@ export const runVITS = async (text: string, modelData:string|OnnxModelFiles = 'X
const files = modelData.files
const keys = Object.keys(files)
for(const key of keys){
const fileURL = '/tf/' + modelData.id + '/' + key
const fileURL = env.localModelPath + modelData.id + '/' + key
tfMap[fileURL] = files[key]
tfMap[location.origin + fileURL] = files[key]
}