aamirtaymoor commited on
Commit
aa03e53
·
verified ·
1 Parent(s): eee2ef3

Update static/my_script.js

Browse files
Files changed (1) hide show
  1. static/my_script.js +1 -1
static/my_script.js CHANGED
@@ -8,7 +8,7 @@ const translateText = async (text, rating) => {
8
  const inferJson = await inferResponse.json();
9
  console.log(inferJson)
10
 
11
- return inferJson.toString();
12
  };
13
 
14
  textGenForm.addEventListener('submit', async (event) => {
 
8
  const inferJson = await inferResponse.json();
9
  console.log(inferJson)
10
 
11
+ return JSON.stringify(inferJson);
12
  };
13
 
14
  textGenForm.addEventListener('submit', async (event) => {