Deeksha commited on
Commit ·
0815192
1
Parent(s): 97d0888
Remove initialization status bar - model is ready
Browse files- templates/index.html +0 -33
templates/index.html
CHANGED
|
@@ -14,11 +14,6 @@
|
|
| 14 |
<h1>Advanced Chatbot Performance</h1>
|
| 15 |
<p class="subtitle">Multi-context Evaluation with Attention LSTM</p>
|
| 16 |
|
| 17 |
-
<div id="status-bar"
|
| 18 |
-
style="margin-bottom: 1rem; text-align: center; font-size: 0.85rem; color: #fbbf24; background: rgba(251, 191, 36, 0.1); padding: 0.5rem; border-radius: 8px; border: 1px solid rgba(251, 191, 36, 0.2);">
|
| 19 |
-
⚠️ Model Initialization in Progress... (Epoch 1/2)
|
| 20 |
-
</div>
|
| 21 |
-
|
| 22 |
<div class="tabs">
|
| 23 |
<div class="tab active" onclick="switchTab('analyzer')">Analyzer</div>
|
| 24 |
<div class="tab" onclick="switchTab('dashboard')">Analytics Dashboard</div>
|
|
@@ -91,34 +86,6 @@
|
|
| 91 |
</div>
|
| 92 |
|
| 93 |
<script>
|
| 94 |
-
// Check model status on load and every 30 seconds
|
| 95 |
-
async function checkStatus() {
|
| 96 |
-
try {
|
| 97 |
-
const res = await fetch('/predict', {
|
| 98 |
-
method: 'POST',
|
| 99 |
-
headers: { 'Content-Type': 'application/json' },
|
| 100 |
-
body: JSON.stringify({ ping: true })
|
| 101 |
-
});
|
| 102 |
-
if (res.ok) {
|
| 103 |
-
const statusBar = document.getElementById('status-bar');
|
| 104 |
-
statusBar.style.color = '#10b981';
|
| 105 |
-
statusBar.style.background = 'rgba(16, 185, 129, 0.1)';
|
| 106 |
-
statusBar.style.borderColor = 'rgba(16, 185, 129, 0.2)';
|
| 107 |
-
statusBar.innerText = '✅ Advanced Intelligence Engine Active';
|
| 108 |
-
setTimeout(() => statusBar.style.display = 'none', 5000);
|
| 109 |
-
}
|
| 110 |
-
} catch (e) { }
|
| 111 |
-
}
|
| 112 |
-
checkStatus();
|
| 113 |
-
const statusInterval = setInterval(() => {
|
| 114 |
-
const statusBar = document.getElementById('status-bar');
|
| 115 |
-
if (statusBar && statusBar.style.display !== 'none') {
|
| 116 |
-
checkStatus();
|
| 117 |
-
} else {
|
| 118 |
-
clearInterval(statusInterval);
|
| 119 |
-
}
|
| 120 |
-
}, 15000);
|
| 121 |
-
|
| 122 |
function switchTab(tab) {
|
| 123 |
|
| 124 |
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
|
|
|
|
| 14 |
<h1>Advanced Chatbot Performance</h1>
|
| 15 |
<p class="subtitle">Multi-context Evaluation with Attention LSTM</p>
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
<div class="tabs">
|
| 18 |
<div class="tab active" onclick="switchTab('analyzer')">Analyzer</div>
|
| 19 |
<div class="tab" onclick="switchTab('dashboard')">Analytics Dashboard</div>
|
|
|
|
| 86 |
</div>
|
| 87 |
|
| 88 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
function switchTab(tab) {
|
| 90 |
|
| 91 |
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
|