wooyeolbaek
commited on
Commit
•
602d244
1
Parent(s):
c993844
Update app.py
Browse files
app.py
CHANGED
@@ -26,11 +26,11 @@ pipe = pipe.to(device)
|
|
26 |
|
27 |
def inference(prompt):
|
28 |
image = pipe(
|
29 |
-
prompt,
|
30 |
num_inference_steps=15,
|
31 |
).images[0]
|
32 |
|
33 |
-
total_attn_maps = save_attention_maps(attn_maps, pipe.tokenizer, prompt)
|
34 |
|
35 |
return image, total_attn_maps
|
36 |
|
|
|
26 |
|
27 |
def inference(prompt):
|
28 |
image = pipe(
|
29 |
+
[prompt],
|
30 |
num_inference_steps=15,
|
31 |
).images[0]
|
32 |
|
33 |
+
total_attn_maps = save_attention_maps(attn_maps, pipe.tokenizer, [prompt])
|
34 |
|
35 |
return image, total_attn_maps
|
36 |
|