mirror of
https://github.com/vladmandic/sdnext.git
synced 2026-01-27 15:02:48 +03:00
10 lines
385 B
JavaScript
10 lines
385 B
JavaScript
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, gradioApp().getElementById('ti_gallery'), null, onProgress, false)
|
|
var res = args_to_array(arguments)
|
|
res[0] = id
|
|
return res
|
|
}
|