Spaces:
Sleeping
Sleeping
Update static/my_script.js
Browse files- 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) => {
|