CSB261 commited on
Commit
2e784eb
β€’
1 Parent(s): 296fcda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -47,12 +47,16 @@ def save_image(image):
47
 
48
 
49
  with gr.Blocks() as demo:
50
- image = gr.Image(label="Upload an image")
51
- text = gr.Textbox(label="Paste an image URL")
52
- download_button = gr.Button("Download Image")
53
- output_file = gr.File()
54
- slider1 = ImageSlider(label="birefnet", type="pil")
55
- slider2 = ImageSlider(label="birefnet", type="pil")
 
 
 
 
56
 
57
  # μŠ€νŽ˜μ΄μŠ€μ— μžˆλŠ” 예제 이미지 파일 경둜
58
  example_image1 = "example_images/example1.jpg"
 
47
 
48
 
49
  with gr.Blocks() as demo:
50
+ with gr.Row():
51
+ with gr.Column(scale=1):
52
+ image = gr.Image(label="Upload an image")
53
+ text = gr.Textbox(label="Paste an image URL")
54
+ download_button = gr.Button("Download Image")
55
+ output_file = gr.File()
56
+
57
+ with gr.Column(scale=2):
58
+ slider1 = ImageSlider(label="Processed Image", type="pil")
59
+ slider2 = ImageSlider(label="Original Image", type="pil")
60
 
61
  # μŠ€νŽ˜μ΄μŠ€μ— μžˆλŠ” 예제 이미지 파일 경둜
62
  example_image1 = "example_images/example1.jpg"