v0.0.44: во время LLM live-блок показывает 'ИИ анализирует все файлы', а не имя последнего файла
Deploy drhider / validate (push) Canceled after 0s
Deploy drhider / validate (push) Canceled after 0s
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ if _sys_path_root not in sys.path:
|
|||||||
sys.path.insert(0, _sys_path_root)
|
sys.path.insert(0, _sys_path_root)
|
||||||
|
|
||||||
# Версия приложения (меняется при изменениях)
|
# Версия приложения (меняется при изменениях)
|
||||||
VERSION = "0.0.43"
|
VERSION = "0.0.44"
|
||||||
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
|
|||||||
@@ -448,6 +448,7 @@ async function uploadFiles() {
|
|||||||
const liveFileEl = document.getElementById('liveFile');
|
const liveFileEl = document.getElementById('liveFile');
|
||||||
const liveLlm = document.getElementById('liveLlm');
|
const liveLlm = document.getElementById('liveLlm');
|
||||||
const liveLlmTime = document.getElementById('liveLlmTime');
|
const liveLlmTime = document.getElementById('liveLlmTime');
|
||||||
|
let currentLiveFile = ''; // последнее имя файла из start
|
||||||
liveLlm.classList.remove('show');
|
liveLlm.classList.remove('show');
|
||||||
liveTimerEl.textContent = '0.0 с';
|
liveTimerEl.textContent = '0.0 с';
|
||||||
liveFileEl.textContent = 'Подготовка…';
|
liveFileEl.textContent = 'Подготовка…';
|
||||||
@@ -475,15 +476,19 @@ async function uploadFiles() {
|
|||||||
// Показываем текущий файл и его размер в live-блоке
|
// Показываем текущий файл и его размер в live-блоке
|
||||||
const f = sf[d.idx];
|
const f = sf[d.idx];
|
||||||
const sz = f ? fs(f.size) : '';
|
const sz = f ? fs(f.size) : '';
|
||||||
liveFileEl.textContent = 'Файл ' + (d.idx + 1) + '/' + total + ': ' + d.name + (sz ? ' (' + sz + ')' : '');
|
currentLiveFile = 'Файл ' + (d.idx + 1) + '/' + total + ': ' + d.name + (sz ? ' (' + sz + ')' : '');
|
||||||
|
liveFileEl.textContent = currentLiveFile;
|
||||||
});
|
});
|
||||||
activeES.addEventListener('llm', function(e) {
|
activeES.addEventListener('llm', function(e) {
|
||||||
const d = JSON.parse(e.data);
|
const d = JSON.parse(e.data);
|
||||||
if (d.active) {
|
if (d.active) {
|
||||||
liveLlmTime.textContent = d.elapsed + ' с';
|
liveLlmTime.textContent = d.elapsed + ' с';
|
||||||
liveLlm.classList.add('show');
|
liveLlm.classList.add('show');
|
||||||
|
// LLM анализирует ВСЕ файлы вместе — не показываем имя конкретного
|
||||||
|
liveFileEl.textContent = '🤖 ИИ анализирует все файлы…';
|
||||||
} else {
|
} else {
|
||||||
liveLlm.classList.remove('show');
|
liveLlm.classList.remove('show');
|
||||||
|
if (currentLiveFile) liveFileEl.textContent = currentLiveFile;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
activeES.addEventListener('done', function(e) {
|
activeES.addEventListener('done', function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user