From e8884c2b017b0926d4781b0e251250b5fb0fb74e Mon Sep 17 00:00:00 2001 From: Seki <73173305+S-Tubasa@users.noreply.github.com> Date: Sun, 11 Sep 2022 06:17:34 +0900 Subject: [PATCH] Change "send to " --- script.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script.js b/script.js index 19f746ab..9a648021 100644 --- a/script.js +++ b/script.js @@ -141,6 +141,16 @@ function extract_image_from_gallery(gallery){ return gallery[index]; } +function extract_image_from_gallery_img2img(gallery){ + gradioApp().querySelectorAll('button')[1].click(); + return extract_image_from_gallery(gallery); +} + +function extract_image_from_gallery_extras(gallery){ + gradioApp().querySelectorAll('button')[2].click(); + return extract_image_from_gallery(gallery); +} + function requestProgress(){ btn = gradioApp().getElementById("check_progress"); if(btn==null) return;