ikraamkb commited on
Commit
deb3326
·
verified ·
1 Parent(s): ea7460b

Update static/appS.js

Browse files
Files changed (1) hide show
  1. static/appS.js +3 -3
static/appS.js CHANGED
@@ -7,8 +7,8 @@ document.addEventListener('DOMContentLoaded', () => {
7
  const sendButtons = document.querySelectorAll('.sendingQA');
8
  const SummarizeInput = document.querySelector(".SummarizeInput");
9
  const CaptionInput = document.querySelector(".CaptionInput");
10
- const gotItButton = document.getElementById('got-it-btn');
11
- const explainChoixDiv = document.querySelector('.explainChoix');
12
 
13
  let selectedFile = null;
14
  let filePreviewBubble = null;
@@ -162,7 +162,7 @@ document.addEventListener('DOMContentLoaded', () => {
162
 
163
  const isSummarizeMode = document.querySelector('input[name="mode"]:checked').value === 'Summarize';
164
  const endpoint = isSummarizeMode ? '/summarize/' : '/imagecaption/';
165
- const thinkingText = isSummarizeMode ? 'Processing document...' : "Generating caption... <div class='loader'></div>";
166
  const senderName = "Aidan";
167
 
168
  const thinkingBubble = createMessageBubble(thinkingText, senderName);
 
7
  const sendButtons = document.querySelectorAll('.sendingQA');
8
  const SummarizeInput = document.querySelector(".SummarizeInput");
9
  const CaptionInput = document.querySelector(".CaptionInput");
10
+ var gotItButton = document.querySelector('.explainChoix button') ;
11
+ var explainChoixDiv = document.querySelector('.explainChoix');
12
 
13
  let selectedFile = null;
14
  let filePreviewBubble = null;
 
162
 
163
  const isSummarizeMode = document.querySelector('input[name="mode"]:checked').value === 'Summarize';
164
  const endpoint = isSummarizeMode ? '/summarize/' : '/imagecaption/';
165
+ const thinkingText = isSummarizeMode ? 'Processing document... <div class="loader"></div>' : "Generating caption... <div class='loader'></div>";
166
  const senderName = "Aidan";
167
 
168
  const thinkingBubble = createMessageBubble(thinkingText, senderName);