SachaDee commited on
Commit
b0b941a
·
verified ·
1 Parent(s): 8b23c13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,11 +13,11 @@ with gr.Blocks(css="""
13
  .column { flex: 1; }
14
  """) as demo:
15
  gr.Markdown("Choose or upload a dog image and press cpmpare!! the system will retutn the 2 detected faces with the recognition result")
16
- with gr.Row(scale=2):
17
- with gr.Column(scale=1):
18
  image1_input = gr.Image(type="pil", label="Image 1",width=200,height=200)
19
  examples_image1 = gr.Examples(examples=["./dob1.jpg", "./p1.jpg", "./dob3.jpg", "./d1.jpg"], inputs=image1_input)
20
- with gr.Column(scale=1):
21
  image2_input = gr.Image(type="pil", label="Image 2",width=200,height=200)
22
  examples_image2 = gr.Examples(examples=["./dob2.jpg", "./p2.jpg", "./dob4.jpg", "./d2.jpg"], inputs=image2_input)
23
  threshold_input = gr.Slider(minimum=0.0, maximum=1.0, value=0.55, step=0.05, label="Threshold")
 
13
  .column { flex: 1; }
14
  """) as demo:
15
  gr.Markdown("Choose or upload a dog image and press cpmpare!! the system will retutn the 2 detected faces with the recognition result")
16
+ with gr.Row():
17
+ with gr.Column():
18
  image1_input = gr.Image(type="pil", label="Image 1",width=200,height=200)
19
  examples_image1 = gr.Examples(examples=["./dob1.jpg", "./p1.jpg", "./dob3.jpg", "./d1.jpg"], inputs=image1_input)
20
+ with gr.Column():
21
  image2_input = gr.Image(type="pil", label="Image 2",width=200,height=200)
22
  examples_image2 = gr.Examples(examples=["./dob2.jpg", "./p2.jpg", "./dob4.jpg", "./d2.jpg"], inputs=image2_input)
23
  threshold_input = gr.Slider(minimum=0.0, maximum=1.0, value=0.55, step=0.05, label="Threshold")