Gabiburt commited on
Commit
293de8d
1 Parent(s): b8428f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -192,23 +192,20 @@ 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
- #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
 
203
  image_blocks = gr.Blocks(css=css, elem_id="total-container")
204
  with image_blocks as demo:
205
  with gr.Column(elem_id="col-container"):
206
- gr.Markdown("## BRIA GenerativeFill")
207
  gr.HTML('''
208
  <p style="margin-bottom: 10px; font-size: 94%">
209
  This is a demo for
210
- <a href="https://huggingface.co/briaai/DEV-GenerativeFill" target="_blank">BRIA Generative Fill </a>.
211
- BRIA Generative Fill improve the inpainting task for Modify/Add/Replace compared to BRIA 2.3 inpainting while still trained on licensed data, and so provide full legal liability coverage for copyright and privacy infringement.
212
  </p>
213
  ''')
214
  with gr.Row():
@@ -216,7 +213,6 @@ with image_blocks as demo:
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):
@@ -225,7 +221,6 @@ with image_blocks as demo:
225
  steps = gr.Number(value=12, minimum=6, maximum=20, step=1, label="steps")
226
  # strength = gr.Number(value=1, minimum=0.01, maximum=1.0, step=0.01, label="strength")
227
  seed = gr.Number(value=123456, minimum=0, maximum=999999, step=1, label="seed")
228
- negative_prompt = gr.Textbox(label="negative_prompt", value=default_negative_prompt, placeholder=default_negative_prompt, info="what you don't want to see in the image")
229
 
230
 
231
  with gr.Column():
 
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
 
200
  image_blocks = gr.Blocks(css=css, elem_id="total-container")
201
  with image_blocks as demo:
202
  with gr.Column(elem_id="col-container"):
203
+ gr.Markdown("## BRIA Eraser")
204
  gr.HTML('''
205
  <p style="margin-bottom: 10px; font-size: 94%">
206
  This is a demo for
207
+ <a href="https://huggingface.co/briaai/BRIA-2.3-ControlNet-Inpainting" target="_blank">BRIA Eraser </a>.
208
+ BRIA Eraser enables the ability to clear out and clean areas in an image or remove specific elements, while trained on licensed data, and so provide full legal liability coverage for copyright and privacy infringement.
209
  </p>
210
  ''')
211
  with gr.Row():
 
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):
 
221
  steps = gr.Number(value=12, minimum=6, maximum=20, step=1, label="steps")
222
  # strength = gr.Number(value=1, minimum=0.01, maximum=1.0, step=0.01, label="strength")
223
  seed = gr.Number(value=123456, minimum=0, maximum=999999, step=1, label="seed")
 
224
 
225
 
226
  with gr.Column():