Skip to content

Commit 98a0c17

Browse files
committed
added handling when credentials not found
1 parent e417fd6 commit 98a0c17

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

services/language_translation/v2.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</div>
2323
<div id="credentials-not-found" class="form-row">
2424
<div class="form-tips">
25-
<i class="fa fa-question-circle"></i><b> Wrong credentials. </b> Could not retrieve models.
25+
<i class="fa fa-question-circle"></i><b> Could not retrieve models. </b> <span id="try-again">Click here to ry again.</span>
2626
</div>
2727
</div>
2828
<div class="form-row">
@@ -123,6 +123,11 @@
123123
var base_model_selected = $('#node-input-basemodel').val();
124124

125125
(function () {
126+
127+
$('span#try-again').on('click', function() {
128+
oneditprepare();
129+
})
130+
126131
// sorting functions
127132
function onlyUnique(value, index, self) {
128133
return self.indexOf(value) === index;

services/speech_to_text/v1.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = function (RED) {
110110

111111
var params = {};
112112

113-
/*if(config.continuous === 'true')
113+
if(config.continuous === 'true')
114114
{
115115
params = {
116116
audio: audio,
@@ -127,15 +127,7 @@ module.exports = function (RED) {
127127
continuous: false
128128
};
129129

130-
}*/
131-
132-
params = {
133-
audio: audio,
134-
content_type: 'audio/' + format,
135-
model: model,
136-
continuous: true,
137-
keywords: ['arlemi','developerWorks']
138-
};
130+
}
139131

140132

141133
node.status({fill:'blue', shape:'dot', text:'requesting'});

0 commit comments

Comments
 (0)