Spaces:
Runtime error
Runtime error
Garrett Goon
commited on
Commit
·
f5c02a5
1
Parent(s):
eae426c
bug fix
Browse files
app.py
CHANGED
@@ -57,13 +57,12 @@ def inference(
|
|
57 |
):
|
58 |
prompt = replace_concept_tokens(prompt)
|
59 |
generator = torch.Generator(device=device).manual_seed(seed)
|
60 |
-
|
61 |
prompt=[prompt] * 2,
|
62 |
num_inference_steps=num_inference_steps,
|
63 |
guidance_scale=guidance_scale,
|
64 |
generator=generator,
|
65 |
-
)
|
66 |
-
img_list = [item['sample'] for item in out]
|
67 |
return img_list
|
68 |
|
69 |
DEFAULT_PROMPT = (
|
|
|
57 |
):
|
58 |
prompt = replace_concept_tokens(prompt)
|
59 |
generator = torch.Generator(device=device).manual_seed(seed)
|
60 |
+
img_list = pipeline(
|
61 |
prompt=[prompt] * 2,
|
62 |
num_inference_steps=num_inference_steps,
|
63 |
guidance_scale=guidance_scale,
|
64 |
generator=generator,
|
65 |
+
).images
|
|
|
66 |
return img_list
|
67 |
|
68 |
DEFAULT_PROMPT = (
|