Update Frontend/scripts.js
Browse files- Frontend/scripts.js +1 -1
Frontend/scripts.js
CHANGED
@@ -19,7 +19,7 @@ function captureAndSend() {
|
|
19 |
fetch("https://prime810-facefeel.hf.space/process-image", {
|
20 |
method: "POST",
|
21 |
headers: { "Content-Type": "application/json" },
|
22 |
-
body: JSON.stringify({ image:
|
23 |
})
|
24 |
.then(response => response.json())
|
25 |
.then(data => {
|
|
|
19 |
fetch("https://prime810-facefeel.hf.space/process-image", {
|
20 |
method: "POST",
|
21 |
headers: { "Content-Type": "application/json" },
|
22 |
+
body: JSON.stringify({ image: dataUrl })
|
23 |
})
|
24 |
.then(response => response.json())
|
25 |
.then(data => {
|