JOHANhuynhhhhh commited on
Commit
84e81bc
·
verified ·
1 Parent(s): cfc55eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -35
app.py CHANGED
@@ -234,32 +234,19 @@ with gr.Blocks(css=demo_path / 'style.css') as demo:
234
  """
235
  <div style="text-align: center; max-width: 1200px; margin: 20px auto;">
236
  <h1 style="font-weight: 900; font-size: 3rem; margin-bottom: 0.5rem">
237
- 🧑‍🎨 HD-Painter Demo
238
  </h1>
239
- <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
240
- Hayk Manukyan<sup>1*</sup>, ndranik Sargsyan<sup>1*</sup>, Barsegh Atanyan<sup>1</sup>, Zhangyang Wang<sup>1,2</sup>, Shant Navasardyan<sup>1</sup>
241
- and <a href="https://www.humphreyshi.com/home">Humphrey Shi</a><sup>1,3</sup>
242
- </h2>
243
- <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
244
- <sup>1</sup>Picsart AI Resarch (PAIR), <sup>2</sup>UT Austin, <sup>3</sup>Georgia Tech
245
- </h2>
246
- <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
247
- [<a href="https://arxiv.org/abs/2312.14091" style="color:blue;">arXiv</a>]
248
- [<a href="https://github.com/Picsart-AI-Research/HD-Painter" style="color:blue;">GitHub</a>]
249
- </h2>
250
  <h2 style="font-weight: 450; font-size: 1rem; margin: 0.7rem auto; max-width: 1000px">
251
- <b>HD-Painter</b> enables prompt-faithfull and high resolution (up to 2k) image inpainting upon any diffusion-based image inpainting method.
252
  </h2>
253
  </div>
254
  """)
255
 
256
  if on_huggingspace:
257
  gr.HTML("""
258
- <p>For faster inference without waiting in queue, you may duplicate the space and upgrade to the suggested GPU in settings.
259
- <br/>
260
- <a href="https://huggingface.co/spaces/PAIR/HD-Painter?duplicate=true">
261
- <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
262
- </p>""")
263
 
264
  with open(demo_path / 'script.js', 'r') as f:
265
  js_str = f.read()
@@ -319,23 +306,7 @@ with gr.Blocks(css=demo_path / 'style.css') as demo:
319
  with gr.Row():
320
  hires_image = gr.Image(label = "Hi-res Image")
321
 
322
- label = gr.Markdown("## High-Resolution Generation Samples (2048px large side)")
323
-
324
- with gr.Column():
325
- example_container = gr.Gallery(
326
- example_previews,
327
- columns = 4,
328
- preview = True,
329
- allow_preview = True,
330
- object_fit='scale-down'
331
- )
332
-
333
- gr.Examples(
334
- [example_inputs[i] + [[example_previews[i]]]
335
- for i in range(len(example_previews))],
336
- [imageMask, hr_image, prompt, example_container],
337
- elem_id='examples'
338
- )
339
 
340
  session_id = gr.Textbox(value='', visible=False)
341
  html_info = gr.HTML(elem_id=f'html_info', elem_classes="infotext")
 
234
  """
235
  <div style="text-align: center; max-width: 1200px; margin: 20px auto;">
236
  <h1 style="font-weight: 900; font-size: 3rem; margin-bottom: 0.5rem">
237
+ 🏡 Bella Staging - Furniture Removal demo
238
  </h1>
239
+
240
+
 
 
 
 
 
 
 
 
 
241
  <h2 style="font-weight: 450; font-size: 1rem; margin: 0.7rem auto; max-width: 1000px">
242
+ This is the demo of Bella's Furniture Removal tool
243
  </h2>
244
  </div>
245
  """)
246
 
247
  if on_huggingspace:
248
  gr.HTML("""
249
+ """)
 
 
 
 
250
 
251
  with open(demo_path / 'script.js', 'r') as f:
252
  js_str = f.read()
 
306
  with gr.Row():
307
  hires_image = gr.Image(label = "Hi-res Image")
308
 
309
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
 
311
  session_id = gr.Textbox(value='', visible=False)
312
  html_info = gr.HTML(elem_id=f'html_info', elem_classes="infotext")