Spaces:
Running
Running
Update demo.py
Browse files
demo.py
CHANGED
|
@@ -102,14 +102,14 @@ with gr.Blocks(css=".gradio-container {background-color: #F4E5E0}") as demo:
|
|
| 102 |
with gr.Column(scale=7):
|
| 103 |
with gr.Row():
|
| 104 |
with gr.Column():
|
| 105 |
-
image_input1 = gr.Image(type='
|
| 106 |
gr.Examples(['face_examples/1.jpg', 'face_examples/3.jpg', 'face_examples/7.jpg', 'face_examples/9.jpg'],
|
| 107 |
inputs=image_input1)
|
| 108 |
with gr.Column():
|
| 109 |
-
image_input2 = gr.Image(type='
|
| 110 |
gr.Examples(['face_examples/2.jpg', 'face_examples/4.jpg', 'face_examples/8.jpg', 'face_examples/10.jpg'],
|
| 111 |
inputs=image_input2)
|
| 112 |
-
face_recog_button = gr.Button("Face
|
| 113 |
with gr.Column(scale=3):
|
| 114 |
recog_html_output = gr.HTML()
|
| 115 |
|
|
|
|
| 102 |
with gr.Column(scale=7):
|
| 103 |
with gr.Row():
|
| 104 |
with gr.Column():
|
| 105 |
+
image_input1 = gr.Image(type='filepath')
|
| 106 |
gr.Examples(['face_examples/1.jpg', 'face_examples/3.jpg', 'face_examples/7.jpg', 'face_examples/9.jpg'],
|
| 107 |
inputs=image_input1)
|
| 108 |
with gr.Column():
|
| 109 |
+
image_input2 = gr.Image(type='filepath')
|
| 110 |
gr.Examples(['face_examples/2.jpg', 'face_examples/4.jpg', 'face_examples/8.jpg', 'face_examples/10.jpg'],
|
| 111 |
inputs=image_input2)
|
| 112 |
+
face_recog_button = gr.Button("Compare Face")
|
| 113 |
with gr.Column(scale=3):
|
| 114 |
recog_html_output = gr.HTML()
|
| 115 |
|