Fix default transformer in quickstart generator (resolves #8018) [ci skip]

This commit is contained in:
Ines Montani 2021-05-11 11:27:08 +10:00
parent 40ca23bde0
commit 77ee7c872b

View File

@ -86,13 +86,14 @@ export default function QuickstartTraining({ id, title, download = 'base_config.
updateComponents(_components, isExclusive)
},
}
const reco = GENERATOR_DATA[lang] || GENERATOR_DATA.__default__
const defaultData = GENERATOR_DATA.__default__
const reco = GENERATOR_DATA[lang] || defaultData
const content = generator({
lang,
components,
optimize,
hardware,
transformer_data: reco.transformer,
transformer_data: reco.transformer || defaultData.transformer,
word_vectors: reco.word_vectors,
has_letters: reco.has_letters,
})