Commit 19f2f959 authored by Samuel John Gulinello's avatar Samuel John Gulinello
Browse files

hide start button after pressing

parent b0120ce8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);

@@ -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');
@@ -71,4 +73,5 @@ async function startWorkflow(){
        console.error(error);
    }
    fetchImageAndObjects();
    
}
 No newline at end of file