Update app.py
Browse files
app.py
CHANGED
|
@@ -14,12 +14,16 @@ def predict(im1, im2):
|
|
| 14 |
else:
|
| 15 |
return sim, "DIFFERENT PEOPLE, DON'T UNLOCK"
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
interface = gr.Interface(fn=predict,
|
| 19 |
inputs= [gr.Image(type="pil", source="webcam"),
|
| 20 |
gr.Image(type="pil", source="webcam")],
|
| 21 |
outputs= [gr.Number(label="Similarity"),
|
| 22 |
-
gr.Textbox(label="Message")]
|
|
|
|
|
|
|
| 23 |
)
|
| 24 |
|
| 25 |
interface.launch(debug=False)
|
|
|
|
| 14 |
else:
|
| 15 |
return sim, "DIFFERENT PEOPLE, DON'T UNLOCK"
|
| 16 |
|
| 17 |
+
|
| 18 |
+
title = "Face ID"
|
| 19 |
+
description = "Upload to selfies and find out if they are the same person."
|
| 20 |
interface = gr.Interface(fn=predict,
|
| 21 |
inputs= [gr.Image(type="pil", source="webcam"),
|
| 22 |
gr.Image(type="pil", source="webcam")],
|
| 23 |
outputs= [gr.Number(label="Similarity"),
|
| 24 |
+
gr.Textbox(label="Message")],
|
| 25 |
+
title=title,
|
| 26 |
+
description=description
|
| 27 |
)
|
| 28 |
|
| 29 |
interface.launch(debug=False)
|