mirror of
https://github.com/vladmandic/sdnext.git
synced 2026-01-27 15:02:48 +03:00
10 lines
393 B
JavaScript
10 lines
393 B
JavaScript
function startTrainMonitor() {
|
|
gradioApp().querySelector('#train_error').innerHTML = '';
|
|
const id = randomId();
|
|
const onProgress = (progress) => { gradioApp().getElementById('train_progress').innerHTML = progress.textinfo; };
|
|
requestProgress(id, gradioApp().getElementById('train_gallery'), null, onProgress, false);
|
|
const res = Array.from(arguments);
|
|
res[0] = id;
|
|
return res;
|
|
}
|