carlfeynman commited on
Commit
05b5f7a
1 Parent(s): cb47955

api connected

Browse files
Files changed (1) hide show
  1. static/index.html +1 -1
static/index.html CHANGED
@@ -108,7 +108,7 @@
108
  var captureButton = document.getElementById('capture-button');
109
  captureButton.addEventListener('click', function () {
110
  var imageData = canvas.toDataURL("image/png");
111
- fetch('YOUR_API_ENDPOINT', {
112
  method: 'POST',
113
  headers: {
114
  'Content-Type': 'application/json',
 
108
  var captureButton = document.getElementById('capture-button');
109
  captureButton.addEventListener('click', function () {
110
  var imageData = canvas.toDataURL("image/png");
111
+ fetch('/predict', {
112
  method: 'POST',
113
  headers: {
114
  'Content-Type': 'application/json',