Spaces:
Sleeping
Sleeping
Update static/appS.js
Browse files- 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";
|
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 = '/
|
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 |
});
|