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