Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def generate(input=DEFAULT_INPUT, negative_input=DEFAULT_NEGATIVE_INPUT, height=
|
|
47 |
|
48 |
print(input, negative_input, height, width, steps, guidance, seed)
|
49 |
|
50 |
-
|
51 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
52 |
|
53 |
parameters = {
|
@@ -62,7 +62,7 @@ def generate(input=DEFAULT_INPUT, negative_input=DEFAULT_NEGATIVE_INPUT, height=
|
|
62 |
"output_type":"pil",
|
63 |
}
|
64 |
|
65 |
-
images =
|
66 |
image_paths = [save_image(img) for img in images]
|
67 |
return image_paths
|
68 |
|
|
|
47 |
|
48 |
print(input, negative_input, height, width, steps, guidance, seed)
|
49 |
|
50 |
+
model.to(DEVICE)
|
51 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
52 |
|
53 |
parameters = {
|
|
|
62 |
"output_type":"pil",
|
63 |
}
|
64 |
|
65 |
+
images = model(**parameters).images
|
66 |
image_paths = [save_image(img) for img in images]
|
67 |
return image_paths
|
68 |
|