arxivgpt kim
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -102,6 +102,7 @@ def merge(org_image, add_image, scale, position, display_size):
|
|
102 |
|
103 |
return final_image
|
104 |
|
|
|
105 |
with gr.Blocks() as demo:
|
106 |
with gr.Tab("Background Removal"):
|
107 |
with gr.Column():
|
@@ -119,8 +120,8 @@ with gr.Blocks() as demo:
|
|
119 |
|
120 |
with gr.Tab("Merge"):
|
121 |
with gr.Column():
|
122 |
-
org_image = gr.Image(label="Background", type='pil', image_mode='RGBA', height=400)
|
123 |
-
add_image = gr.Image(label="Foreground", type='pil', image_mode='RGBA', height=400)
|
124 |
scale = gr.Slider(minimum=10, maximum=200, step=1, value=100, label="Scale of Foreground Image (%)")
|
125 |
position = gr.Radio(choices=["์ค์ ๊ฐ์ด๋ฐ", "์๋จ ์ข์ธก", "์๋จ ๊ฐ์ด๋ฐ", "์๋จ ์ฐ์ธก", "์ค์ ์ข์ธก", "์ค์ ์ฐ์ธก", "ํ๋จ ์ข์ธก", "ํ๋จ ๊ฐ์ด๋ฐ", "ํ๋จ ์ฐ์ธก"], value="์ค์ ๊ฐ์ด๋ฐ", label="Position of Foreground Image")
|
126 |
display_size = gr.Textbox(value="800x600", label="Display Size (Width x Height)")
|
|
|
102 |
|
103 |
return final_image
|
104 |
|
105 |
+
|
106 |
with gr.Blocks() as demo:
|
107 |
with gr.Tab("Background Removal"):
|
108 |
with gr.Column():
|
|
|
120 |
|
121 |
with gr.Tab("Merge"):
|
122 |
with gr.Column():
|
123 |
+
org_image = gr.Image(label="Background", type='pil', image_mode='RGBA', height=400) # ์์๋ก ๋์ด ์กฐ์
|
124 |
+
add_image = gr.Image(label="Foreground", type='pil', image_mode='RGBA', height=400) # ์์๋ก ๋์ด ์กฐ์
|
125 |
scale = gr.Slider(minimum=10, maximum=200, step=1, value=100, label="Scale of Foreground Image (%)")
|
126 |
position = gr.Radio(choices=["์ค์ ๊ฐ์ด๋ฐ", "์๋จ ์ข์ธก", "์๋จ ๊ฐ์ด๋ฐ", "์๋จ ์ฐ์ธก", "์ค์ ์ข์ธก", "์ค์ ์ฐ์ธก", "ํ๋จ ์ข์ธก", "ํ๋จ ๊ฐ์ด๋ฐ", "ํ๋จ ์ฐ์ธก"], value="์ค์ ๊ฐ์ด๋ฐ", label="Position of Foreground Image")
|
127 |
display_size = gr.Textbox(value="800x600", label="Display Size (Width x Height)")
|