ConradLax commited on
Commit
ec7695e
·
1 Parent(s): 5d94103

test: classification res

Browse files
Files changed (1) hide show
  1. static/script.js +4 -3
static/script.js CHANGED
@@ -40,9 +40,10 @@ function submitImages(acceptedFiles) {
40
  data.append('files[]', file, file.name);
41
  }
42
 
43
- classifyResponse = fetch('classify',
44
- method: 'POST',
45
- body: data);
 
46
 
47
  return classifyResponse;
48
  }
 
40
  data.append('files[]', file, file.name);
41
  }
42
 
43
+ classifyResponse = fetch('classify', {
44
+ method: 'POST',
45
+ body: data
46
+ });
47
 
48
  return classifyResponse;
49
  }