Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
18 |
-
gr.Image(type=
|
19 |
-
outputs= [gr.Number(label=
|
20 |
-
gr.Textbox(label=
|
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)
|