Prime810 commited on
Commit
2bc715c
·
verified ·
1 Parent(s): 5c16164

Update Frontend/scripts.js

Browse files
Files changed (1) hide show
  1. 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: base64ImageData })
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 => {