gmerrill commited on
Commit
301ea74
·
1 Parent(s): 1780c8d
Files changed (1) hide show
  1. static/script.js +2 -2
static/script.js CHANGED
@@ -25,8 +25,8 @@ textGenForm.addEventListener('submit', async (event) => {
25
  try {
26
  textGenParagraph.textContent = "Awaiting response ...";
27
  const txtResp = await translateText(textGenInput.value);
28
- console.info(txtResp)
29
- textGenParagraph.textContent = JSON.parse(txtResp).val
30
  } catch (err) {
31
  console.error(err);
32
  }
 
25
  try {
26
  textGenParagraph.textContent = "Awaiting response ...";
27
  const txtResp = await translateText(textGenInput.value);
28
+ console.info(txtResp);
29
+ textGenParagraph.textContent = JSON.stringify(JSON.parse(txtResp).val, null, 2);
30
  } catch (err) {
31
  console.error(err);
32
  }