Spaces:
fantos
/
Runtime error

arxivgpt kim commited on
Commit
ef55172
ยท
verified ยท
1 Parent(s): d975af1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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)")