ianluo commited on
Commit
bea4ef9
·
1 Parent(s): a961b40
Files changed (1) hide show
  1. static/script.js +3 -1
static/script.js CHANGED
@@ -13,9 +13,11 @@ textGenForm.addEventListener("submit", async (e) => {
13
  const textGenInput = document.getElementById("text-gen-input");
14
  const textGenParagraph = document.querySelector(".text-gen-output");
15
 
 
 
16
  try {
17
  textGenParagraph.textContent = await translateText(textGenInput.value);
18
- console.log(textGenInput.value);
19
  } catch (err) {
20
  console.log(err);
21
  }
 
13
  const textGenInput = document.getElementById("text-gen-input");
14
  const textGenParagraph = document.querySelector(".text-gen-output");
15
 
16
+ console.log('start translate');
17
+
18
  try {
19
  textGenParagraph.textContent = await translateText(textGenInput.value);
20
+ console.log(textGenParagraph.textContent);
21
  } catch (err) {
22
  console.log(err);
23
  }