Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
|
@@ -103,19 +103,20 @@ with gr.Blocks(theme='aliabid94/new-theme') as demo:
|
|
| 103 |
)'''
|
| 104 |
with gr.Row():
|
| 105 |
with gr.Column(scale=1):
|
| 106 |
-
compare_face_input1 = gr.Image(label="Image1", type='filepath', height=
|
| 107 |
gr.Examples(['examples/1.jpg', 'examples/2.jpg', 'examples/3.jpg', 'examples/4.jpg'],
|
| 108 |
inputs=compare_face_input1)
|
| 109 |
-
compare_face_input2 = gr.Image(label="Image2", type='filepath', height=
|
| 110 |
gr.Examples(['examples/5.jpg', 'examples/6.jpg', 'examples/7.jpg', 'examples/8.jpg'],
|
| 111 |
inputs=compare_face_input2)
|
| 112 |
compare_face_button = gr.Button("Face Analysis & Verification", variant="primary")
|
| 113 |
|
| 114 |
-
with gr.Column(scale=
|
| 115 |
compare_face_output = gr.Gallery(label="Faces", height=250, columns=[2], rows=[1])
|
| 116 |
with gr.Row():
|
| 117 |
with gr.Column(variant="panel"):
|
| 118 |
gr.Markdown("<b>Image 1<b/>")
|
|
|
|
| 119 |
gr.CheckboxGroup(["GENUINE", "FAKE"], value="GENUINE", label="Liveness"),
|
| 120 |
gr.Number(2, label="Age"),
|
| 121 |
gr.CheckboxGroup(["MALE", "zoo"], value="MALE", label="Gender"),
|
|
@@ -135,6 +136,7 @@ with gr.Blocks(theme='aliabid94/new-theme') as demo:
|
|
| 135 |
gr.Number(0.63, label="Quality"),
|
| 136 |
with gr.Column(variant="panel"):
|
| 137 |
gr.Markdown("<b>Image 2<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"),
|
|
|
|
| 103 |
)'''
|
| 104 |
with gr.Row():
|
| 105 |
with gr.Column(scale=1):
|
| 106 |
+
compare_face_input1 = gr.Image(label="Image1", type='filepath', height=270)
|
| 107 |
gr.Examples(['examples/1.jpg', 'examples/2.jpg', 'examples/3.jpg', 'examples/4.jpg'],
|
| 108 |
inputs=compare_face_input1)
|
| 109 |
+
compare_face_input2 = gr.Image(label="Image2", type='filepath', height=270)
|
| 110 |
gr.Examples(['examples/5.jpg', 'examples/6.jpg', 'examples/7.jpg', 'examples/8.jpg'],
|
| 111 |
inputs=compare_face_input2)
|
| 112 |
compare_face_button = gr.Button("Face Analysis & Verification", variant="primary")
|
| 113 |
|
| 114 |
+
with gr.Column(scale=2):
|
| 115 |
compare_face_output = gr.Gallery(label="Faces", height=250, columns=[2], rows=[1])
|
| 116 |
with gr.Row():
|
| 117 |
with gr.Column(variant="panel"):
|
| 118 |
gr.Markdown("<b>Image 1<b/>")
|
| 119 |
+
gr.Image(label="Face1", type='filepath', height=150)
|
| 120 |
gr.CheckboxGroup(["GENUINE", "FAKE"], value="GENUINE", label="Liveness"),
|
| 121 |
gr.Number(2, label="Age"),
|
| 122 |
gr.CheckboxGroup(["MALE", "zoo"], value="MALE", label="Gender"),
|
|
|
|
| 136 |
gr.Number(0.63, label="Quality"),
|
| 137 |
with gr.Column(variant="panel"):
|
| 138 |
gr.Markdown("<b>Image 2<b/>")
|
| 139 |
+
gr.Image(label="Face2", type='filepath', height=150)
|
| 140 |
gr.CheckboxGroup(["GENUINE", "FAKE"], value="GENUINE", label="Liveness"),
|
| 141 |
gr.Number(2, label="Age"),
|
| 142 |
gr.CheckboxGroup(["MALE", "zoo"], value="MALE", label="Gender"),
|