From ab5a472556782801b275bd317790dae7a2cd4a98 Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Sun, 25 Sep 2022 06:39:22 +0100 Subject: [PATCH] Persist default Number values --- modules/ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")