justin2341 commited on
Commit
db99fd4
·
verified ·
1 Parent(s): 8da3e7b

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +3 -3
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='pil')
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='pil')
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 Recognition")
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