aamirtaymoor commited on
Commit
43c9d6a
·
verified ·
1 Parent(s): e5180db

Update static/my_script.js

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