bugfix: model title
This commit is contained in:
parent
0379a0ea2e
commit
fa833b5b68
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
@ -34,9 +34,10 @@ export const ModelSwitchRow = (_props: ModelSwitchRowProps) => {
|
||||
const embedstr = x.embChannels
|
||||
const typestr = x.modelType == 0 ? "org" : "webui"
|
||||
const metadata = x.deprecated ? `[${index}] [deprecated version]` : `[${index}] [${f0str},${srstr},${embedstr},${typestr}]`
|
||||
const tuning = `tune:${x.defaultTrans}`
|
||||
const useIndex = x.indexFile != null && x.featureFile != null ? `index:true` : `index:false`
|
||||
const subMetadata = `(${tuning},${useIndex})`
|
||||
const tuning = `t:${x.defaultTune}`
|
||||
const useIndex = x.indexFile != null && x.featureFile != null ? `i:true` : `i:false`
|
||||
const defaultIndexRatio = `ir:${x.defaultIndexRatio}`
|
||||
const subMetadata = `(${tuning},${useIndex},${defaultIndexRatio})`
|
||||
const displayName = `${metadata} ${x.name || filename} ${subMetadata}`
|
||||
|
||||
|
||||
|
@ -185,7 +185,8 @@ type ModelSlot = {
|
||||
featureFile: string,
|
||||
indexFile: string,
|
||||
|
||||
defaultTrans: number,
|
||||
defaultTune: number,
|
||||
defaultIndexRatio: number,
|
||||
|
||||
modelType: number,
|
||||
embChannels: number,
|
||||
|
Loading…
x
Reference in New Issue
Block a user