wooyeolbaek commited on
Commit
7971f77
1 Parent(s): a6279fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -34,18 +34,19 @@ def inference(prompt):
34
 
35
  with gr.Blocks() as demo:
36
  gr.Markdown(
37
- """
38
- 🚀 Text-to-Image Cross Attention Map for 🧨 Diffusers ⚡
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
- value=None,
47
- label="Generated images", show_label=False, elem_id="gallery",
48
- object_fit="contain", height="auto")
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])