Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
|
2 |
-
from sentence_transformers import util,SentenceTransformer
|
3 |
model = SentenceTransformer('clip-ViT-L-14')
|
4 |
|
5 |
def predict(im1, im2):
|
@@ -16,7 +16,7 @@ title = "Facial Identity Recognition System"
|
|
16 |
|
17 |
interface = gr.Interface(fn=predict,
|
18 |
inputs= [gr.Image(type="pil", source="webcam"),
|
19 |
-
gr.Image(shape=(200, 200)],
|
20 |
outputs= [gr.Number(label="Similarity"),
|
21 |
gr.Textbox(label="Message")]
|
22 |
)
|
|
|
1 |
|
2 |
+
from sentence_transformers import util, SentenceTransformer
|
3 |
model = SentenceTransformer('clip-ViT-L-14')
|
4 |
|
5 |
def predict(im1, im2):
|
|
|
16 |
|
17 |
interface = gr.Interface(fn=predict,
|
18 |
inputs= [gr.Image(type="pil", source="webcam"),
|
19 |
+
gr.Image(shape=(200, 200))],
|
20 |
outputs= [gr.Number(label="Similarity"),
|
21 |
gr.Textbox(label="Message")]
|
22 |
)
|