Spaces:
Sleeping
Sleeping
Update static/my_script.js
Browse files- static/my_script.js +1 -0
static/my_script.js
CHANGED
|
@@ -6,6 +6,7 @@ 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 |
|
| 10 |
return inferJson.output;
|
| 11 |
};
|
|
|
|
| 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 |
|
| 11 |
return inferJson.output;
|
| 12 |
};
|