Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def get_seed(seed):
|
|
74 |
@spaces.GPU(duration=60)
|
75 |
def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATIVE_INPUT, model=DEFAULT_MODEL, height=DEFAULT_HEIGHT, width=DEFAULT_WIDTH, steps=1, guidance=0, number=1, seed=None):
|
76 |
|
77 |
-
repo = repo_customs[model or "Default"]
|
78 |
filter_input = filter_input or ""
|
79 |
negative_input = negative_input or DEFAULT_NEGATIVE_INPUT
|
80 |
steps_set = steps
|
@@ -100,6 +100,7 @@ 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 |
|
104 |
if not steps:
|
105 |
steps = steps_set
|
|
|
74 |
@spaces.GPU(duration=60)
|
75 |
def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATIVE_INPUT, model=DEFAULT_MODEL, height=DEFAULT_HEIGHT, width=DEFAULT_WIDTH, steps=1, guidance=0, number=1, seed=None):
|
76 |
|
77 |
+
repo = repo_customs[model or "Default"]
|
78 |
filter_input = filter_input or ""
|
79 |
negative_input = negative_input or DEFAULT_NEGATIVE_INPUT
|
80 |
steps_set = steps
|
|
|
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
|