Spaces:
Runtime error
Runtime error
Update script.js
Browse files
script.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
const textGenForm = document.querySelector(".text-gen-form");
|
| 2 |
|
| 3 |
const translateText = async (text) => {
|
| 4 |
-
const inferResponse = await fetch(`
|
| 5 |
const inferJson = await inferResponse.json();
|
| 6 |
|
| 7 |
return inferJson.output;
|
|
|
|
| 1 |
const textGenForm = document.querySelector(".text-gen-form");
|
| 2 |
|
| 3 |
const translateText = async (text) => {
|
| 4 |
+
const inferResponse = await fetch(`Wobbly-Caribou?input=${text}`);
|
| 5 |
const inferJson = await inferResponse.json();
|
| 6 |
|
| 7 |
return inferJson.output;
|