Spaces:
Runtime error
Runtime error
update
Browse files- static/script.js +1 -1
static/script.js
CHANGED
|
@@ -2,7 +2,7 @@ const textGenForm = document.querySelector(".text-gen-form")
|
|
| 2 |
|
| 3 |
const translateText = async (text) => {
|
| 4 |
console.log('start translate');
|
| 5 |
-
const inferResponse = await fetch(
|
| 6 |
const inferJson = await inferResponse.json();
|
| 7 |
|
| 8 |
return inferJson.output;
|
|
|
|
| 2 |
|
| 3 |
const translateText = async (text) => {
|
| 4 |
console.log('start translate');
|
| 5 |
+
const inferResponse = await fetch(`infer_t5?input=${text}`);
|
| 6 |
const inferJson = await inferResponse.json();
|
| 7 |
|
| 8 |
return inferJson.output;
|