Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -192,8 +192,11 @@ div#share-btn-container > div {flex-direction: row;background: black;align-items
|
|
192 |
#share-btn-container div:nth-child(-n+2){width: auto !important;min-height: 0px !important;}
|
193 |
#share-btn-container .wrap {display: none !important}
|
194 |
#share-btn-container.hidden {display: none!important}
|
|
|
195 |
#run_button{position:absolute;margin-top: 11px;right: 0;margin-right: 0.8em;border-bottom-left-radius: 0px;
|
196 |
border-top-left-radius: 0px;}
|
|
|
|
|
197 |
#image_upload{border-bottom-left-radius: 0px;border-bottom-right-radius: 0px}
|
198 |
'''
|
199 |
|
@@ -213,6 +216,7 @@ with image_blocks as demo:
|
|
213 |
image = gr.ImageEditor(sources=["upload"], layers=False, transforms=[], brush=gr.Brush(colors=["#000000"], color_mode="fixed")) #gr.Image(sources=['upload'], tool='sketch', elem_id="image_upload", type="pil", label="Upload", height=400)
|
214 |
with gr.Row(elem_id="prompt-container", equal_height=True):
|
215 |
with gr.Row():
|
|
|
216 |
btn = gr.Button("Inpaint!", elem_id="run_button")
|
217 |
|
218 |
with gr.Accordion(label="Advanced Settings", open=False):
|
|
|
192 |
#share-btn-container div:nth-child(-n+2){width: auto !important;min-height: 0px !important;}
|
193 |
#share-btn-container .wrap {display: none !important}
|
194 |
#share-btn-container.hidden {display: none!important}
|
195 |
+
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
196 |
#run_button{position:absolute;margin-top: 11px;right: 0;margin-right: 0.8em;border-bottom-left-radius: 0px;
|
197 |
border-top-left-radius: 0px;}
|
198 |
+
#prompt-container{margin-top:-18px;}
|
199 |
+
#prompt-container .form{border-top-left-radius: 0;border-top-right-radius: 0}
|
200 |
#image_upload{border-bottom-left-radius: 0px;border-bottom-right-radius: 0px}
|
201 |
'''
|
202 |
|
|
|
216 |
image = gr.ImageEditor(sources=["upload"], layers=False, transforms=[], brush=gr.Brush(colors=["#000000"], color_mode="fixed")) #gr.Image(sources=['upload'], tool='sketch', elem_id="image_upload", type="pil", label="Upload", height=400)
|
217 |
with gr.Row(elem_id="prompt-container", equal_height=True):
|
218 |
with gr.Row():
|
219 |
+
prompt = gr.Textbox(placeholder="Your prompt (what you want in place of what is erased)", show_label=False, elem_id="prompt")
|
220 |
btn = gr.Button("Inpaint!", elem_id="run_button")
|
221 |
|
222 |
with gr.Accordion(label="Advanced Settings", open=False):
|