Use .success() callback on img2img preview inputs change

This commit is contained in:
space-nuko
2023-03-25 14:26:36 -04:00
parent 75e7eb9172
commit c5f9f7c237
3 changed files with 285 additions and 549 deletions

View File

@@ -118,14 +118,6 @@ function get_img2img_tab_index_for_res_preview() {
return res
}
function get_img2img_tab_index_for_res_preview() {
let res = args_to_array(arguments)
res.splice(-1) // gradio also sends outputs to the arguments, pop them off
res[0] = get_tab_index('mode_img2img')
debugger;
return res
}
function create_submit_args(args){
res = []
for(var i=0;i<args.length;i++){