From a6adc22f0711c8ab78c6ef8fc78715f815cc750f Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Thu, 1 Sep 2022 21:20:25 +0300 Subject: added interrupt button added save button --always-batch-cond-uncond as a workaround for performance regression option for low memory users specify gradio version as 3.1.5 because of what looks like a bug --- script.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'script.js') diff --git a/script.js b/script.js index 9d409f86..1d7de7da 100644 --- a/script.js +++ b/script.js @@ -1,5 +1,3 @@ -console.log("running") - titles = { "Sampling steps": "How many times to imptove the generated image itratively; higher values take longer; very low values can produce bad results", "Sampling method": "Which algorithm to use to produce the image", @@ -29,6 +27,9 @@ titles = { "Inpaint at full resolution": "Upscale masked region to target resolution, do inpainting, downscale back and paste into original image", "Denoising Strength": "Determines how little respect the algorithm should have for image's content. At 0, nothing will change, and at 1 you'll get an unrelated image.", + + "Interrupt": "Stop processing images and return any results accumulated so far.", + "Save": "Write image to a directory (default - log/images) and generation parameters into csv file.", } function gradioApp(){ @@ -36,7 +37,7 @@ function gradioApp(){ } function addTitles(root){ - root.querySelectorAll('span').forEach(function(span){ + root.querySelectorAll('span, button').forEach(function(span){ tooltip = titles[span.textContent]; if(tooltip){ span.title = tooltip; -- cgit v1.2.3