@@ -118,28 +112,20 @@ function get_tab_index(tabId) {
}
functioncreate_tab_index_args(tabId,args){
varres=[];
for(vari=0;i<args.length;i++){
res.push(args[i]);
}
varres=Array.from(args);
res[0]=get_tab_index(tabId);
returnres;
}
functionget_img2img_tab_index(){
letres=args_to_array(arguments);
letres=Array.from(arguments);
res.splice(-2);
res[0]=get_tab_index('mode_img2img');
returnres;
}
functioncreate_submit_args(args){
varres=[];
for(vari=0;i<args.length;i++){
res.push(args[i]);
}
varres=Array.from(args);
// As it is currently, txt2img and img2img send back the previous output args (txt2img_gallery, generation_info, html_info) whenever you generate a new image.
// This can lead to uploading a huge gallery of previously generated images, which leads to an unnecessary delay between submitting and beginning to generate.
...
...
@@ -275,13 +261,13 @@ function recalculatePromptTokens(name) {