Update app.py
Browse files
app.py
CHANGED
@@ -316,12 +316,12 @@ with gr.Blocks(css="""
|
|
316 |
|
317 |
# ์
๋ ฅ ์ด๋ฏธ์ง UI๋ฅผ ์ ์ ํ ๊ฐ๊ฒฉ์ผ๋ก ์ธ๋ก ๋ฐฐ์น
|
318 |
with gr.Column():
|
319 |
-
with gr.
|
320 |
-
image1_input = gr.Image(type="pil", label="#1",
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
|
326 |
# ํ๋กฌํํธ ์
๋ ฅ
|
327 |
prompt_input = gr.Textbox(
|
@@ -332,31 +332,29 @@ with gr.Blocks(css="""
|
|
332 |
|
333 |
# ๋ฒํผ ์คํ์ผ ๊ฐ์
|
334 |
with gr.Column(variant="panel"):
|
|
|
335 |
with gr.Row():
|
336 |
-
gr.
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
background_change_btn = gr.Button("๋ฐฐ๊ฒฝ๋ฐ๊พธ๊ธฐ", scale=1
|
342 |
-
composite_product_btn = gr.Button("๋ถ๋ถ์ง์ฐ๊ธฐ", scale=1
|
343 |
|
344 |
# ์์ฑ ๋ฒํผ์ ๋ ๋์ ๋๊ฒ ๋ง๋ค๊ธฐ
|
345 |
-
|
346 |
-
submit_btn = gr.Button("์ด๋ฏธ์ง ์์ฑ (4์ฅ)", variant="primary", scale=1, size="lg")
|
347 |
|
348 |
# ์ถ๋ ฅ ์น์
|
349 |
gr.HTML("<h3 style='text-align: center; margin-top: 1.5rem; margin-bottom: 0.5rem;'>์์ฑ๋ ์ด๋ฏธ์ง</h3>")
|
350 |
|
351 |
# ์ถ๋ ฅ ์ด๋ฏธ์ง UI๋ฅผ ์ธ๋ก๋ก ๋ฐฐ์น
|
352 |
with gr.Column():
|
353 |
-
with gr.
|
354 |
output_image1 = gr.Image(label="์์ฑ๋ ์ด๋ฏธ์ง #1", height=300, width=300)
|
355 |
-
with gr.Box():
|
356 |
output_image2 = gr.Image(label="์์ฑ๋ ์ด๋ฏธ์ง #2", height=300, width=300)
|
357 |
-
with gr.
|
358 |
output_image3 = gr.Image(label="์์ฑ๋ ์ด๋ฏธ์ง #3", height=300, width=300)
|
359 |
-
with gr.Box():
|
360 |
output_image4 = gr.Image(label="์์ฑ๋ ์ด๋ฏธ์ง #4", height=300, width=300)
|
361 |
|
362 |
# ์ํ ๋ฐ ํ๋กฌํํธ ์ ๋ณด
|
|
|
316 |
|
317 |
# ์
๋ ฅ ์ด๋ฏธ์ง UI๋ฅผ ์ ์ ํ ๊ฐ๊ฒฉ์ผ๋ก ์ธ๋ก ๋ฐฐ์น
|
318 |
with gr.Column():
|
319 |
+
with gr.Row():
|
320 |
+
image1_input = gr.Image(type="pil", label="#1", height=200, width=200)
|
321 |
+
image2_input = gr.Image(type="pil", label="#2", height=200, width=200)
|
322 |
+
with gr.Row():
|
323 |
+
image3_input = gr.Image(type="pil", label="#3", height=200, width=200)
|
324 |
+
placeholder_input = gr.Textbox(visible=False) # ๋ ์ด์์ ์กฐ์ ์ฉ ๋๋ฏธ ์ปดํฌ๋ํธ
|
325 |
|
326 |
# ํ๋กฌํํธ ์
๋ ฅ
|
327 |
prompt_input = gr.Textbox(
|
|
|
332 |
|
333 |
# ๋ฒํผ ์คํ์ผ ๊ฐ์
|
334 |
with gr.Column(variant="panel"):
|
335 |
+
gr.HTML("<h4 style='margin-bottom: 0.5rem; text-align: center; width: 100%;'>์์
์ ํ</h4>")
|
336 |
with gr.Row():
|
337 |
+
image_change_btn = gr.Button("์ด๋ฏธ์ง๋ณ๊ฒฝ", scale=1)
|
338 |
+
text_remove_btn = gr.Button("๊ธ์์ง์ฐ๊ธฐ", scale=1)
|
339 |
+
clothes_change_btn = gr.Button("๊ฐ์ ์ํ์ฐฉ์ฉ", scale=1)
|
340 |
+
|
341 |
+
with gr.Row():
|
342 |
+
background_change_btn = gr.Button("๋ฐฐ๊ฒฝ๋ฐ๊พธ๊ธฐ", scale=1)
|
343 |
+
composite_product_btn = gr.Button("๋ถ๋ถ์ง์ฐ๊ธฐ", scale=1)
|
344 |
|
345 |
# ์์ฑ ๋ฒํผ์ ๋ ๋์ ๋๊ฒ ๋ง๋ค๊ธฐ
|
346 |
+
submit_btn = gr.Button("์ด๋ฏธ์ง ์์ฑ (4์ฅ)", variant="primary", size="lg")
|
|
|
347 |
|
348 |
# ์ถ๋ ฅ ์น์
|
349 |
gr.HTML("<h3 style='text-align: center; margin-top: 1.5rem; margin-bottom: 0.5rem;'>์์ฑ๋ ์ด๋ฏธ์ง</h3>")
|
350 |
|
351 |
# ์ถ๋ ฅ ์ด๋ฏธ์ง UI๋ฅผ ์ธ๋ก๋ก ๋ฐฐ์น
|
352 |
with gr.Column():
|
353 |
+
with gr.Row():
|
354 |
output_image1 = gr.Image(label="์์ฑ๋ ์ด๋ฏธ์ง #1", height=300, width=300)
|
|
|
355 |
output_image2 = gr.Image(label="์์ฑ๋ ์ด๋ฏธ์ง #2", height=300, width=300)
|
356 |
+
with gr.Row():
|
357 |
output_image3 = gr.Image(label="์์ฑ๋ ์ด๋ฏธ์ง #3", height=300, width=300)
|
|
|
358 |
output_image4 = gr.Image(label="์์ฑ๋ ์ด๋ฏธ์ง #4", height=300, width=300)
|
359 |
|
360 |
# ์ํ ๋ฐ ํ๋กฌํํธ ์ ๋ณด
|