Spaces:
Runtime error
Runtime error
Commit
Β·
820cf05
1
Parent(s):
4dcd38e
Double width
Browse files- app.py +15 -11
- 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 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
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:
|
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>
|