Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,8 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
96 |
steps_set = 16
|
97 |
guidance_set = 3
|
98 |
|
99 |
-
steps = (not
|
100 |
-
guidance = (not
|
101 |
|
102 |
repo.to(DEVICE)
|
103 |
|
|
|
96 |
steps_set = 16
|
97 |
guidance_set = 3
|
98 |
|
99 |
+
steps = (not steps or steps < 0 and steps_set) or steps
|
100 |
+
guidance = (not guidance or guidance < 0 and guidance_set) or guidance
|
101 |
|
102 |
repo.to(DEVICE)
|
103 |
|