wooyeolbaek
commited on
Commit
•
7971f77
1
Parent(s):
a6279fd
Update app.py
Browse files
app.py
CHANGED
@@ -34,18 +34,19 @@ def inference(prompt):
|
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
gr.Markdown(
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
40 |
prompt = gr.Textbox(value="A photo of a black puppy, christmas atmosphere", label="Prompt", lines=2)
|
41 |
btn = gr.Button("Generate images", scale=0)
|
42 |
|
43 |
with gr.Row():
|
44 |
image = gr.Image(height=512,width=512,type="pil")
|
45 |
gallery = gr.Gallery(
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
|
50 |
|
51 |
btn.click(inference, prompt, [image, gallery])
|
|
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
gr.Markdown(
|
37 |
+
"""
|
38 |
+
# 🚀 Text-to-Image Cross Attention Map for 🧨 Diffusers ⚡
|
39 |
+
"""
|
40 |
+
)
|
41 |
prompt = gr.Textbox(value="A photo of a black puppy, christmas atmosphere", label="Prompt", lines=2)
|
42 |
btn = gr.Button("Generate images", scale=0)
|
43 |
|
44 |
with gr.Row():
|
45 |
image = gr.Image(height=512,width=512,type="pil")
|
46 |
gallery = gr.Gallery(
|
47 |
+
value=None, label="Generated images", show_label=False,
|
48 |
+
elem_id="gallery", object_fit="contain", height="auto"
|
49 |
+
)
|
50 |
|
51 |
|
52 |
btn.click(inference, prompt, [image, gallery])
|