ammaan commited on
Commit
6a5cebd
·
verified ·
1 Parent(s): 386aa7c

Update static/index.js

Browse files
Files changed (1) hide show
  1. static/index.js +3 -0
static/index.js CHANGED
@@ -10,7 +10,10 @@ async function sendDataToBackend(inputData) {
10
  document.getElementById("summaryResult").innerText = data.summary;
11
  }
12
  } catch (error) {
 
13
  console.error(error);
 
 
14
  }
15
  }
16
 
 
10
  document.getElementById("summaryResult").innerText = data.summary;
11
  }
12
  } catch (error) {
13
+ document.getElementById("loader").style.display = "none";
14
  console.error(error);
15
+ } finally {
16
+ document.getElementById("loader").style.display = "none";
17
  }
18
  }
19