Spaces:
Sleeping
Sleeping
Sahil commited on
Update index.html
Browse files- index.html +15 -1
index.html
CHANGED
|
@@ -214,6 +214,14 @@
|
|
| 214 |
<h3 id="totalTokens">0</h3>
|
| 215 |
<p>Total Tokens</p>
|
| 216 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
<div class="stat-card">
|
| 218 |
<h3 id="bufferedCount">0</h3>
|
| 219 |
<p>Buffered (Unsaved)</p>
|
|
@@ -365,6 +373,8 @@
|
|
| 365 |
if (data.success) {
|
| 366 |
document.getElementById('totalConversations').textContent = data.total_examples;
|
| 367 |
document.getElementById('totalTokens').textContent = data.total_tokens.toLocaleString();
|
|
|
|
|
|
|
| 368 |
document.getElementById('bufferedCount').textContent = data.buffered;
|
| 369 |
addLog('π Stats refreshed', 'success');
|
| 370 |
}
|
|
@@ -389,7 +399,11 @@
|
|
| 389 |
// Initialize stats on load
|
| 390 |
refreshStats();
|
| 391 |
addLog('π ContinuumLearner initialized', 'success');
|
| 392 |
-
addLog('
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
|
| 394 |
// Enter key to submit
|
| 395 |
document.getElementById('userInput').addEventListener('keydown', function(e) {
|
|
|
|
| 214 |
<h3 id="totalTokens">0</h3>
|
| 215 |
<p>Total Tokens</p>
|
| 216 |
</div>
|
| 217 |
+
<div class="stat-card">
|
| 218 |
+
<h3 id="autoGenerated">0</h3>
|
| 219 |
+
<p>Auto-Generated</p>
|
| 220 |
+
</div>
|
| 221 |
+
<div class="stat-card">
|
| 222 |
+
<h3 id="manualGenerated">0</h3>
|
| 223 |
+
<p>Manual</p>
|
| 224 |
+
</div>
|
| 225 |
<div class="stat-card">
|
| 226 |
<h3 id="bufferedCount">0</h3>
|
| 227 |
<p>Buffered (Unsaved)</p>
|
|
|
|
| 373 |
if (data.success) {
|
| 374 |
document.getElementById('totalConversations').textContent = data.total_examples;
|
| 375 |
document.getElementById('totalTokens').textContent = data.total_tokens.toLocaleString();
|
| 376 |
+
document.getElementById('autoGenerated').textContent = data.auto_generated || 0;
|
| 377 |
+
document.getElementById('manualGenerated').textContent = data.manual_generated || 0;
|
| 378 |
document.getElementById('bufferedCount').textContent = data.buffered;
|
| 379 |
addLog('π Stats refreshed', 'success');
|
| 380 |
}
|
|
|
|
| 399 |
// Initialize stats on load
|
| 400 |
refreshStats();
|
| 401 |
addLog('π ContinuumLearner initialized', 'success');
|
| 402 |
+
addLog('π€ AUTO-TRAINING ACTIVE - Training runs every 5 minutes', 'success');
|
| 403 |
+
addLog('π‘ You can also manually train by entering prompts!', 'success');
|
| 404 |
+
|
| 405 |
+
// Auto-refresh stats every 30 seconds
|
| 406 |
+
setInterval(refreshStats, 30000);
|
| 407 |
|
| 408 |
// Enter key to submit
|
| 409 |
document.getElementById('userInput').addEventListener('keydown', function(e) {
|