Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -324,17 +324,7 @@ def app_gradio():
|
|
324 |
# define root_path
|
325 |
root_path = "resource/demo/example"
|
326 |
|
327 |
-
|
328 |
-
<style>
|
329 |
-
#fixed-image-frame img {
|
330 |
-
width: 300px;
|
331 |
-
height: 300px;
|
332 |
-
object-fit: contain;
|
333 |
-
border: 1px solid #ccc;
|
334 |
-
background-color: #f9f9f9;
|
335 |
-
}
|
336 |
-
</style>
|
337 |
-
""")
|
338 |
# First column ==============================
|
339 |
with gr.Column(scale=1, min_width=350):
|
340 |
# Person image
|
@@ -344,7 +334,7 @@ def app_gradio():
|
|
344 |
visible=False,
|
345 |
)
|
346 |
person_image = gr.ImageEditor(
|
347 |
-
interactive=True, label="Person Image", type="filepath"
|
348 |
)
|
349 |
# Mask instruction
|
350 |
with gr.Row():
|
@@ -389,7 +379,7 @@ def app_gradio():
|
|
389 |
with gr.Column(scale=1, min_width=350):
|
390 |
# Clothes image
|
391 |
cloth_image = gr.Image(
|
392 |
-
interactive=True, label="Clothes Image", type="filepath"
|
393 |
)
|
394 |
|
395 |
# Clothes column examples
|
|
|
324 |
# define root_path
|
325 |
root_path = "resource/demo/example"
|
326 |
|
327 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
# First column ==============================
|
329 |
with gr.Column(scale=1, min_width=350):
|
330 |
# Person image
|
|
|
334 |
visible=False,
|
335 |
)
|
336 |
person_image = gr.ImageEditor(
|
337 |
+
interactive=True, label="Person Image", type="filepath"
|
338 |
)
|
339 |
# Mask instruction
|
340 |
with gr.Row():
|
|
|
379 |
with gr.Column(scale=1, min_width=350):
|
380 |
# Clothes image
|
381 |
cloth_image = gr.Image(
|
382 |
+
interactive=True, label="Clothes Image", type="filepath"
|
383 |
)
|
384 |
|
385 |
# Clothes column examples
|