Loading app.js +4 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ function displayImageAndObjects(imageUrl, objects) { // Create an image element const imageElement = document.createElement('img'); imageElement.src = "/Users/sam/Documents/Documents/BU/EC504/FinalProjFrontEnd/keyframe.png"; imageElement.src = imageUrl; imageElement.alt = 'Image'; imageContainer.appendChild(imageElement); Loading Loading @@ -58,6 +58,8 @@ function hideLoading() { } async function startWorkflow(){ const startButton = document.getElementById("process"); startButton.style.display = "none"; displayLoading(); try { const response = await fetch('http://127.0.0.1:5000/runProcess'); Loading @@ -71,4 +73,5 @@ async function startWorkflow(){ console.error(error); } fetchImageAndObjects(); } No newline at end of file Loading
app.js +4 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ function displayImageAndObjects(imageUrl, objects) { // Create an image element const imageElement = document.createElement('img'); imageElement.src = "/Users/sam/Documents/Documents/BU/EC504/FinalProjFrontEnd/keyframe.png"; imageElement.src = imageUrl; imageElement.alt = 'Image'; imageContainer.appendChild(imageElement); Loading Loading @@ -58,6 +58,8 @@ function hideLoading() { } async function startWorkflow(){ const startButton = document.getElementById("process"); startButton.style.display = "none"; displayLoading(); try { const response = await fetch('http://127.0.0.1:5000/runProcess'); Loading @@ -71,4 +73,5 @@ async function startWorkflow(){ console.error(error); } fetchImageAndObjects(); } No newline at end of file