Spaces:
Runtime error
Runtime error
gmerrill
commited on
Commit
·
ae9ec04
1
Parent(s):
9df5fa1
update
Browse files- static/script.js +1 -1
static/script.js
CHANGED
@@ -27,7 +27,7 @@ textGenForm.addEventListener('submit', async (event) => {
|
|
27 |
const start = Date.now()
|
28 |
const txtResp = await translateText(textGenInput.value);
|
29 |
console.info(txtResp);
|
30 |
-
textGenParagraph.textContent = JSON.parse(txtResp).val[0] + '\n\n' + 'Took ' + (Date.now() - start) + 'ms';
|
31 |
|
32 |
} catch (err) {
|
33 |
console.error(err);
|
|
|
27 |
const start = Date.now()
|
28 |
const txtResp = await translateText(textGenInput.value);
|
29 |
console.info(txtResp);
|
30 |
+
textGenParagraph.textContent = JSON.parse(txtResp).val[0]['generated_text'] + '\n\n' + 'Took ' + (Date.now() - start) + 'ms';
|
31 |
|
32 |
} catch (err) {
|
33 |
console.error(err);
|