ikraamkb commited on
Commit
764b662
ยท
verified ยท
1 Parent(s): d2df7d7

Update static/appS.js

Browse files
Files changed (1) hide show
  1. static/appS.js +3 -3
static/appS.js CHANGED
@@ -160,7 +160,7 @@ document.addEventListener('DOMContentLoaded', () => {
160
  const downloadLink = document.createElement('a');
161
  downloadLink.href = fileName;
162
  downloadLink.target = "_blank";
163
- downloadLink.download = "summary.pdf"; // โœ… Suggest filename
164
  const downloadIcon = document.createElement("i");
165
  downloadIcon.className = "fa-solid fa-file-arrow-down";
166
  downloadIcon.style.fontSize = "18px";
@@ -186,7 +186,7 @@ document.addEventListener('DOMContentLoaded', () => {
186
  }
187
 
188
  const isSummarizeMode = document.querySelector('input[name="mode"]:checked').value === 'Summarize';
189
- const endpoint = isSummarizeMode ? '/summarize/' : '/imagecaption/';
190
  const thinkingText = isSummarizeMode ? 'Processing document ๐Ÿ“„... <div class="loader"></div>' : "Generating caption ๐Ÿ–ผ๏ธ ... <div class='loader'></div>";
191
  const senderName = "Aidan";
192
 
@@ -263,6 +263,6 @@ document.addEventListener('DOMContentLoaded', () => {
263
 
264
  var backarrow = document.querySelector(".fa-arrow-left")
265
  backarrow.addEventListener('click', function () {
266
- window.location.href = '/hellopage.html'; // Redirect to Question Answering app
267
  });
268
  });
 
160
  const downloadLink = document.createElement('a');
161
  downloadLink.href = fileName;
162
  downloadLink.target = "_blank";
163
+ downloadLink.download = "summary.pdf";
164
  const downloadIcon = document.createElement("i");
165
  downloadIcon.className = "fa-solid fa-file-arrow-down";
166
  downloadIcon.style.fontSize = "18px";
 
186
  }
187
 
188
  const isSummarizeMode = document.querySelector('input[name="mode"]:checked').value === 'Summarize';
189
+ const endpoint = isSummarizeMode ? '/Summarization/summarize/' : '/Summarization/imagecaption/';
190
  const thinkingText = isSummarizeMode ? 'Processing document ๐Ÿ“„... <div class="loader"></div>' : "Generating caption ๐Ÿ–ผ๏ธ ... <div class='loader'></div>";
191
  const senderName = "Aidan";
192
 
 
263
 
264
  var backarrow = document.querySelector(".fa-arrow-left")
265
  backarrow.addEventListener('click', function () {
266
+ window.location.href = '/';
267
  });
268
  });