This commit is contained in:
Vladimir Mandic
2023-04-25 09:21:38 -04:00
parent dcd6d5bf56
commit 11fa3aff6d
9 changed files with 39 additions and 72 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd = null, o
setTitle("")
if (divProgress) parentProgressbar.removeChild(divProgress)
if (parentGallery) parentGallery.removeChild(livePreview)
atEnd()
if (atEnd) atEnd()
}
var fun = function(id_task, id_live_preview){
+1
View File
@@ -5,6 +5,7 @@ function start_training_textual_inversion(){
gradioApp().querySelector('#ti_error').innerHTML=''
var id = randomId()
const onProgress = (progress) => gradioApp().getElementById('ti_progress').innerHTML = progress.textinfo;
// requestProgress(id_task, progressbarContainer, gallery, atEnd = null, onProgress = null, once = false) {
requestProgress(id, gradioApp().getElementById('ti_output'), gradioApp().getElementById('ti_gallery'), null, onProgress, false)
var res = args_to_array(arguments)
res[0] = id