Vineela Gampa commited on
Commit
b86c69d
·
unverified ·
1 Parent(s): c9a3e86

fixing chat

Browse files
Files changed (1) hide show
  1. web/analyzer.html +1 -4
web/analyzer.html CHANGED
@@ -386,10 +386,7 @@
386
  document.getElementById("ask-btn").onclick = async () => {
387
  const q = document.getElementById("user-question").value.trim();
388
  if (!q) return;
389
- if (!extractedText) {
390
- alert("Please analyze a document first.");
391
- return;
392
- }
393
 
394
  chat.innerHTML += `<p><strong>You:</strong> ${q}</p>`;
395
  chat.innerHTML += `<p><strong>Chatbot:</strong> <em>Thinking...</em></p>`;
 
386
  document.getElementById("ask-btn").onclick = async () => {
387
  const q = document.getElementById("user-question").value.trim();
388
  if (!q) return;
389
+
 
 
 
390
 
391
  chat.innerHTML += `<p><strong>You:</strong> ${q}</p>`;
392
  chat.innerHTML += `<p><strong>Chatbot:</strong> <em>Thinking...</em></p>`;