Turing311 commited on
Commit
133fce2
·
1 Parent(s): 10e9c2f
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -111,8 +111,11 @@ with gr.Blocks(theme='aliabid94/new-theme') as demo:
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/>")
@@ -134,7 +137,7 @@ with gr.Blocks(theme='aliabid94/new-theme') as demo:
134
  gr.Number(1.33, label="Roll"),
135
  gr.Number(0.63, label="Yaw"),
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", height=150, interactive=False)
140
  gr.CheckboxGroup(["GENUINE", "FAKE"], value="GENUINE", label="Liveness"),
@@ -157,6 +160,6 @@ with gr.Blocks(theme='aliabid94/new-theme') as demo:
157
 
158
  compare_result_output = gr.JSON(label='Result')
159
 
160
- # compare_face_button.click(compare_face, inputs=[compare_face_input1, compare_face_input2], outputs=[compare_result_output, compare_face_output])
161
 
162
  demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False)
 
111
  inputs=compare_face_input2)
112
  compare_face_button = gr.Button("Face Analysis & Verification", variant="primary")
113
 
114
+ with gr.Column(scale=2):
115
+ with gr.Row():
116
+ compare_face_output = gr.Gallery(label="Faces", height=250, columns=[2], rows=[1])
117
+ gr.Markdown("""<br/><br/><br/><h1 style="text-align: center;color: green;">SAME<br/>PERSON</h1>""")
118
+
119
  with gr.Row():
120
  with gr.Column(variant="panel"):
121
  gr.Markdown("<b>Image 1<b/>")
 
137
  gr.Number(1.33, label="Roll"),
138
  gr.Number(0.63, label="Yaw"),
139
  gr.Number(0.63, label="Quality"),
140
+ with gr.Column(variant="panel"):
141
  gr.Markdown("<b>Image 2<b/>")
142
  gr.Image(label="Face2", height=150, interactive=False)
143
  gr.CheckboxGroup(["GENUINE", "FAKE"], value="GENUINE", label="Liveness"),
 
160
 
161
  compare_result_output = gr.JSON(label='Result')
162
 
163
+ compare_face_button.click(compare_face, inputs=[compare_face_input1, compare_face_input2], outputs=[compare_result_output, compare_face_output])
164
 
165
  demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False)