Spaces:
Sleeping
Sleeping
Update static/my_script.js
Browse files- static/my_script.js +0 -6
static/my_script.js
CHANGED
|
@@ -8,9 +8,6 @@ const translateText = async (text, rating) => {
|
|
| 8 |
const inferJson = await inferResponse.json();
|
| 9 |
const processed_data = inferJson.processed_data
|
| 10 |
const inferJsonStr = JSON.stringify(processed_data)
|
| 11 |
-
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>")
|
| 12 |
-
console.log(inferJsonStr)
|
| 13 |
-
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>")
|
| 14 |
return inferJsonStr;
|
| 15 |
};
|
| 16 |
|
|
@@ -24,9 +21,6 @@ textGenForm.addEventListener('submit', async (event) => {
|
|
| 24 |
|
| 25 |
try {
|
| 26 |
const data = await translateText(textGenInput.value, rating.value)
|
| 27 |
-
console.log("????????????????????????????????????")
|
| 28 |
-
console.log(data)
|
| 29 |
-
console.log("????????????????????????????????????")
|
| 30 |
textGenParagraph.textContent = data;
|
| 31 |
} catch (err) {
|
| 32 |
console.error(err);
|
|
|
|
| 8 |
const inferJson = await inferResponse.json();
|
| 9 |
const processed_data = inferJson.processed_data
|
| 10 |
const inferJsonStr = JSON.stringify(processed_data)
|
|
|
|
|
|
|
|
|
|
| 11 |
return inferJsonStr;
|
| 12 |
};
|
| 13 |
|
|
|
|
| 21 |
|
| 22 |
try {
|
| 23 |
const data = await translateText(textGenInput.value, rating.value)
|
|
|
|
|
|
|
|
|
|
| 24 |
textGenParagraph.textContent = data;
|
| 25 |
} catch (err) {
|
| 26 |
console.error(err);
|