mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-07 21:02:38 +00:00
Code Style fixes
This commit is contained in:
@@ -243,11 +243,11 @@ function updatePromptArea(text, textArea, isNeg) {
|
|||||||
|
|
||||||
function cardClicked(tabname, textToAdd, textToAddNegative, allowNegativePrompt) {
|
function cardClicked(tabname, textToAdd, textToAddNegative, allowNegativePrompt) {
|
||||||
if (textToAddNegative.length > 0) {
|
if (textToAddNegative.length > 0) {
|
||||||
updatePromptArea(textToAdd, gradioApp().querySelector("#" + tabname + "_prompt > label > textarea"))
|
updatePromptArea(textToAdd, gradioApp().querySelector("#" + tabname + "_prompt > label > textarea"));
|
||||||
updatePromptArea(textToAddNegative, gradioApp().querySelector("#" + tabname + "_neg_prompt > label > textarea"), true)
|
updatePromptArea(textToAddNegative, gradioApp().querySelector("#" + tabname + "_neg_prompt > label > textarea"), true);
|
||||||
} else {
|
} else {
|
||||||
var textarea = allowNegativePrompt ? activePromptTextarea[tabname] : gradioApp().querySelector("#" + tabname + "_prompt > label > textarea");
|
var textarea = allowNegativePrompt ? activePromptTextarea[tabname] : gradioApp().querySelector("#" + tabname + "_prompt > label > textarea");
|
||||||
updatePromptArea(textToAdd, textarea)
|
updatePromptArea(textToAdd, textarea);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@ import torch
|
|||||||
import tqdm
|
import tqdm
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from modules import devices, images
|
from modules import images
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user