multimodalart HF staff commited on
Commit
820cf05
1 Parent(s): 4dcd38e

Double width

Browse files
Files changed (2) hide show
  1. app.py +15 -11
  2. header.html +2 -1
app.py CHANGED
@@ -61,17 +61,21 @@ with image_blocks as demo:
61
  gr.HTML(read_content("header.html"))
62
  with gr.Group():
63
  with gr.Box():
64
- image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload").style(height=400)
65
-
66
- with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
67
- prompt = gr.Textbox(label = 'Your prompt (what you want in place of what is erased)')
68
- btn = gr.Button("Generate image").style(
69
- margin=False,
70
- rounded=(False, True, True, False),
71
- full_width=False,
72
- )
73
-
74
- btn.click(fn=predict, inputs=[image, prompt], outputs=image)
 
 
 
 
75
 
76
 
77
 
 
61
  gr.HTML(read_content("header.html"))
62
  with gr.Group():
63
  with gr.Box():
64
+ with gr.Row():
65
+ with gr.Column():
66
+ image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload").style(height=400)
67
+ with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
68
+ prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False)
69
+ btn = gr.Button("Inpaint!").style(
70
+ margin=False,
71
+ rounded=(False, True, True, False),
72
+ full_width=False,
73
+ )
74
+ with gr.Column():
75
+ image_out = gr.Image(label="Output").style(height=400)
76
+
77
+
78
+ btn.click(fn=predict, inputs=[image, prompt], outputs=image_out)
79
 
80
 
81
 
header.html CHANGED
@@ -4,11 +4,12 @@
4
  gap: 0.8rem;
5
  font-size: 1.75rem;
6
  justify-content: center;
 
7
  ">
8
  <img
9
  src="https://aeiljuispo.cloudimg.io/v7/https://s3.amazonaws.com/moonup/production/uploads/1665970599545-634cb15a4abe8405758d2e7e.jpeg"
10
  alt="RunwayML" width="64px">
11
- <h1 style="font-weight: 900; align-items: center; margin-bottom: 7px; margin-top: 12px;">
12
  RunwayML Stable Diffusion Inpainting 🎨
13
  </h1>
14
  </div>
 
4
  gap: 0.8rem;
5
  font-size: 1.75rem;
6
  justify-content: center;
7
+ margin-bottom: 10px;
8
  ">
9
  <img
10
  src="https://aeiljuispo.cloudimg.io/v7/https://s3.amazonaws.com/moonup/production/uploads/1665970599545-634cb15a4abe8405758d2e7e.jpeg"
11
  alt="RunwayML" width="64px">
12
+ <h1 style="font-weight: 900; align-items: center; margin-bottom: 7px; margin-top: 20px;">
13
  RunwayML Stable Diffusion Inpainting 🎨
14
  </h1>
15
  </div>