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

Update static/my_script.js

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