schrilax commited on
Commit
9714130
1 Parent(s): 6f36334

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -14,10 +14,10 @@ def predict(im1, im2):
14
  return sim, 'Unrecognized user. Unable to unlock phone'
15
 
16
  interface = gr.Interface(fn=predict,
17
- inputs= [gr.Image(type="pil", source="webcam"),
18
- gr.Image(type="pil", source="webcam")],
19
- outputs= [gr.Number(label="Similarity"),
20
- gr.Textbox(label="Message")]
21
  )
22
 
23
  interface.launch(debug=True)
 
14
  return sim, 'Unrecognized user. Unable to unlock phone'
15
 
16
  interface = gr.Interface(fn=predict,
17
+ inputs= [gr.Image(type='pil', source='webcam'),
18
+ gr.Image(type='pil', source='webcam')],
19
+ outputs= [gr.Number(label='Similarity'),
20
+ gr.Textbox(label='Message')]
21
  )
22
 
23
  interface.launch(debug=True)