From 77ee7c872bf703e0710d653944e488a9d64b6bba Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 11 May 2021 11:27:08 +1000 Subject: [PATCH] Fix default transformer in quickstart generator (resolves #8018) [ci skip] --- website/src/widgets/quickstart-training.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/widgets/quickstart-training.js b/website/src/widgets/quickstart-training.js index ad29c324f..8481d2048 100644 --- a/website/src/widgets/quickstart-training.js +++ b/website/src/widgets/quickstart-training.js @@ -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, })