datien228 commited on
Commit
ca38afa
·
1 Parent(s): 4b8021c

Update templates/index.html

Browse files
Files changed (1) hide show
  1. 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;