Spaces:
Runtime error
Runtime error
Update templates/index.html
Browse files- templates/index.html +1 -1
templates/index.html
CHANGED
|
@@ -188,7 +188,7 @@
|
|
| 188 |
// ======= COMMUNICATE WITH FLSAK BACK END TO RUN ML TASK =======
|
| 189 |
|
| 190 |
const translateText = async (jsonfile) => {
|
| 191 |
-
const inferResponse = await fetch(`/summarize?input=${jsonfile}`, {method: 'POST'});
|
| 192 |
const inferJson = await inferResponse.json();
|
| 193 |
|
| 194 |
return inferJson;
|
|
|
|
| 188 |
// ======= COMMUNICATE WITH FLSAK BACK END TO RUN ML TASK =======
|
| 189 |
|
| 190 |
const translateText = async (jsonfile) => {
|
| 191 |
+
const inferResponse = await fetch(`/summarize?input=${jsonfile}`, {method: 'POST', mode: 'no-cors'});
|
| 192 |
const inferJson = await inferResponse.json();
|
| 193 |
|
| 194 |
return inferJson;
|