Spaces:
fantos
/
Runtime error

arxivgpt kim commited on
Commit
59ec89f
ยท
verified ยท
1 Parent(s): 2686b72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -111,12 +111,12 @@ with gr.Blocks() as demo:
111
  with gr.Blocks() as demo:
112
  with gr.Tab("Merge"):
113
  with gr.Column():
114
- org_image = gr.Image(label="Background", type='pil', image_mode='RGBA', height="80vh") # ๋†’์ด ์กฐ์ •
115
- add_image = gr.Image(label="Foreground", type='pil', image_mode='RGBA', height="80vh") # ๋†’์ด ์กฐ์ •
116
  scale = gr.Slider(minimum=10, maximum=200, step=1, value=100, label="Scale of Foreground Image (%)")
117
  position = gr.Radio(choices=["์ค‘์•™ ๊ฐ€์šด๋ฐ", "์ƒ๋‹จ ์ขŒ์ธก", "์ƒ๋‹จ ๊ฐ€์šด๋ฐ", "์ƒ๋‹จ ์šฐ์ธก", "์ค‘์•™ ์ขŒ์ธก", "์ค‘์•™ ์šฐ์ธก", "ํ•˜๋‹จ ์ขŒ์ธก", "ํ•˜๋‹จ ๊ฐ€์šด๋ฐ", "ํ•˜๋‹จ ์šฐ์ธก"], value="์ค‘์•™ ๊ฐ€์šด๋ฐ", label="Position of Foreground Image")
118
  btn_merge = gr.Button("Merge Images")
119
- result_merge = gr.Image(height="80vh") # ๊ฒฐ๊ณผ ์ด๋ฏธ์ง€ ํ‘œ์‹œ ๋ฐ•์Šค ๋†’์ด ์กฐ์ •
120
 
121
  btn_merge.click(
122
  fn=merge,
 
111
  with gr.Blocks() as demo:
112
  with gr.Tab("Merge"):
113
  with gr.Column():
114
+ org_image = gr.Image(label="Background", type='pil', image_mode='RGBA', height="40vh") # ๋†’์ด ์กฐ์ •
115
+ add_image = gr.Image(label="Foreground", type='pil', image_mode='RGBA', height="40vh") # ๋†’์ด ์กฐ์ •
116
  scale = gr.Slider(minimum=10, maximum=200, step=1, value=100, label="Scale of Foreground Image (%)")
117
  position = gr.Radio(choices=["์ค‘์•™ ๊ฐ€์šด๋ฐ", "์ƒ๋‹จ ์ขŒ์ธก", "์ƒ๋‹จ ๊ฐ€์šด๋ฐ", "์ƒ๋‹จ ์šฐ์ธก", "์ค‘์•™ ์ขŒ์ธก", "์ค‘์•™ ์šฐ์ธก", "ํ•˜๋‹จ ์ขŒ์ธก", "ํ•˜๋‹จ ๊ฐ€์šด๋ฐ", "ํ•˜๋‹จ ์šฐ์ธก"], value="์ค‘์•™ ๊ฐ€์šด๋ฐ", label="Position of Foreground Image")
118
  btn_merge = gr.Button("Merge Images")
119
+ result_merge = gr.Image(height="40vh") # ๊ฒฐ๊ณผ ์ด๋ฏธ์ง€ ํ‘œ์‹œ ๋ฐ•์Šค ๋†’์ด ์กฐ์ •
120
 
121
  btn_merge.click(
122
  fn=merge,