textualInversion.js 449 B

1234567891011121314151617
  1. function start_training_textual_inversion(){
  2. gradioApp().querySelector('#ti_error').innerHTML=''
  3. var id = randomId()
  4. requestProgress(id, gradioApp().getElementById('ti_output'), gradioApp().getElementById('ti_gallery'), function(){}, function(progress){
  5. gradioApp().getElementById('ti_progress').innerHTML = progress.textinfo
  6. })
  7. var res = args_to_array(arguments)
  8. res[0] = id
  9. return res
  10. }