diff options
author | DepFA <35278260+dfaker@users.noreply.github.com> | 2022-09-25 05:39:22 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-25 05:46:09 +0000 |
commit | ab5a472556782801b275bd317790dae7a2cd4a98 (patch) | |
tree | 276e7bc16167622d9fe81ef79b42946fa171b808 | |
parent | ca13264609e9c2667358461be52cf782895841dd (diff) | |
download | stable-diffusion-webui-gfx803-ab5a472556782801b275bd317790dae7a2cd4a98.tar.gz stable-diffusion-webui-gfx803-ab5a472556782801b275bd317790dae7a2cd4a98.tar.bz2 stable-diffusion-webui-gfx803-ab5a472556782801b275bd317790dae7a2cd4a98.zip |
Persist default Number values
-rw-r--r-- | modules/ui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index 228b3905..4862a267 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1062,7 +1062,10 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): if type(x) == gr.Textbox:
apply_field(x, 'value')
-
+
+ if type(x) == gr.Number:
+ apply_field(x, 'value')
+
visit(txt2img_interface, loadsave, "txt2img")
visit(img2img_interface, loadsave, "img2img")
visit(extras_interface, loadsave, "extras")
|