aboutsummaryrefslogtreecommitdiff
path: root/script.js
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-01 21:20:25 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-01 21:20:25 +0300
commita6adc22f0711c8ab78c6ef8fc78715f815cc750f (patch)
tree7ea75f4734c023340e7bdf1e2649a1133e5330eb /script.js
parent54dc6f930761a6a471206b2ba74f1cc73c54789f (diff)
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
Diffstat (limited to 'script.js')
-rw-r--r--script.js7
1 files changed, 4 insertions, 3 deletions
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;