Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
238 |
</h1>
|
239 |
-
|
240 |
-
|
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 |
-
|
252 |
</h2>
|
253 |
</div>
|
254 |
""")
|
255 |
|
256 |
if on_huggingspace:
|
257 |
gr.HTML("""
|
258 |
-
|
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 |
-
|
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")
|