Skip to content

Commit

Permalink
api connected
Browse files Browse the repository at this point in the history
arun477 committed Sep 14, 2023
1 parent cb47955 commit 05b5f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
@@ -108,7 +108,7 @@ <h3 style="text-align:center;">Draw and Predict Handwritten Digits</h3>
var captureButton = document.getElementById('capture-button');
captureButton.addEventListener('click', function () {
var imageData = canvas.toDataURL("image/png");
fetch('YOUR_API_ENDPOINT', {
fetch('/predict', {
method: 'POST',
headers: {
'Content-Type': 'application/json',

0 comments on commit 05b5f7a

Please sign in to comment.