Spaces:
Runtime error
Runtime error
test: classification res
Browse files- 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 |
-
|
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 |
}
|