Turing311 commited on
Commit
17e0a61
·
1 Parent(s): 9afc3f1
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -102,15 +102,17 @@ with gr.Blocks(theme='aliabid94/new-theme') as demo:
102
  }""",
103
  )'''
104
  with gr.Row():
105
- with gr.Column():
106
- compare_face_input1 = gr.Image(label="Image1", type='filepath', height=480)
107
- gr.Examples(['examples/1.jpg', 'examples/2.jpg', 'examples/3.jpg', 'examples/4.jpg'],
108
- inputs=compare_face_input1)
109
- compare_face_button = gr.Button("Face Analysis & Verification", variant="primary")
110
- with gr.Column():
111
- compare_face_input2 = gr.Image(label="Image2", type='filepath', height=480)
112
- gr.Examples(['examples/5.jpg', 'examples/6.jpg', 'examples/7.jpg', 'examples/8.jpg'],
113
- inputs=compare_face_input2)
 
 
114
  with gr.Column():
115
  compare_face_output = gr.Gallery(label="Faces", height=250, columns=[2], rows=[1])
116
  with gr.Row():
@@ -134,7 +136,7 @@ with gr.Blocks(theme='aliabid94/new-theme') as demo:
134
  gr.Number(0.63, label="Yaw"),
135
  gr.Number(0.63, label="Quality"),
136
  with gr.Column(variant="panel"):
137
- gr.Markdown("<b>Image 1<b/>")
138
  gr.CheckboxGroup(["GENUINE", "FAKE"], value="GENUINE", label="Liveness"),
139
  gr.Number(2, label="Age"),
140
  gr.CheckboxGroup(["MALE", "zoo"], value="MALE", label="Gender"),
 
102
  }""",
103
  )'''
104
  with gr.Row():
105
+ with gr.Row():
106
+ with gr.Column():
107
+ compare_face_input1 = gr.Image(label="Image1", type='filepath', height=480)
108
+ gr.Examples(['examples/1.jpg', 'examples/2.jpg', 'examples/3.jpg', 'examples/4.jpg'],
109
+ inputs=compare_face_input1)
110
+ with gr.Column():
111
+ compare_face_input2 = gr.Image(label="Image2", type='filepath', height=480)
112
+ gr.Examples(['examples/5.jpg', 'examples/6.jpg', 'examples/7.jpg', 'examples/8.jpg'],
113
+ inputs=compare_face_input2)
114
+ compare_face_button = gr.Button("Face Analysis & Verification", variant="primary")
115
+
116
  with gr.Column():
117
  compare_face_output = gr.Gallery(label="Faces", height=250, columns=[2], rows=[1])
118
  with gr.Row():
 
136
  gr.Number(0.63, label="Yaw"),
137
  gr.Number(0.63, label="Quality"),
138
  with gr.Column(variant="panel"):
139
+ gr.Markdown("<b>Image 2<b/>")
140
  gr.CheckboxGroup(["GENUINE", "FAKE"], value="GENUINE", label="Liveness"),
141
  gr.Number(2, label="Age"),
142
  gr.CheckboxGroup(["MALE", "zoo"], value="MALE", label="Gender"),