File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ [
2+ " it-IT_BroadbandModel" ,
3+ " it-IT_NarrowbandModel" ,
4+ " nl-NL_NarrowbandModel" ,
5+ " nl-NL_BroadbandModel"
6+ ]
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import SpeechToText from 'watson-speech/speech-to-text';
66// load time. Once we have a token, this component will automatically fetch the current list
77// of models and update the UI if necessary.
88import cachedModels from '../src/data/models.json' ;
9+ import betaModels from '../src/data/beta-models.json' ;
910
1011
1112export class ModelDropdown extends Component {
@@ -49,7 +50,9 @@ export class ModelDropdown extends Component {
4950 . map ( m => (
5051 < option value = { m . name } key = { m . name } > { m . description . replace ( / \. $ / , '' ) }
5152 { ' ' }
52- ({ m . rate / 1000 } KHz)
53+ { betaModels . some ( b => b === m . name ) ? '(Beta)' : '' }
54+ { ' ' }
55+ ({ m . rate / 1000 } KHz)
5356 </ option > ) ) ;
5457
5558 return (
You can’t perform that action at this time.
0 commit comments