Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,6 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
| 100 |
steps_set = 25
|
| 101 |
guidance_set = 7
|
| 102 |
repo.set_adapters(["default_base"], adapter_weights=[0.7])
|
| 103 |
-
repo.to(DEVICE)
|
| 104 |
|
| 105 |
if not steps:
|
| 106 |
steps = steps_set
|
|
@@ -109,6 +108,8 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
| 109 |
|
| 110 |
print(steps, guidance)
|
| 111 |
|
|
|
|
|
|
|
| 112 |
parameters = {
|
| 113 |
"prompt": input,
|
| 114 |
"negative_prompt": filter_input + negative_input,
|
|
|
|
| 100 |
steps_set = 25
|
| 101 |
guidance_set = 7
|
| 102 |
repo.set_adapters(["default_base"], adapter_weights=[0.7])
|
|
|
|
| 103 |
|
| 104 |
if not steps:
|
| 105 |
steps = steps_set
|
|
|
|
| 108 |
|
| 109 |
print(steps, guidance)
|
| 110 |
|
| 111 |
+
repo.to(DEVICE)
|
| 112 |
+
|
| 113 |
parameters = {
|
| 114 |
"prompt": input,
|
| 115 |
"negative_prompt": filter_input + negative_input,
|