Spaces:
Running
Running
update on 2023-02-15
Browse files
app.py
CHANGED
@@ -43,7 +43,6 @@ def predict(image, threshold=20.0, results=3):
|
|
43 |
ids, distances = index.get_nns_by_vector(
|
44 |
face, 50, search_k=10000, include_distances=True
|
45 |
)
|
46 |
-
|
47 |
persons = {}
|
48 |
for p, distance in zip(ids, distances):
|
49 |
id = ANNOY_INDEX[p]
|
@@ -96,7 +95,7 @@ gr.Interface(
|
|
96 |
inputs=[
|
97 |
gr.components.Image(),
|
98 |
gr.components.Slider(label="threshold",minimum=0.0, maximum=30.0, value=20.0),
|
99 |
-
gr.components.Slider(label="results", minimum=0, maximum=
|
100 |
],
|
101 |
outputs=gr.outputs.JSON(label=""),
|
102 |
title="Who is in the photo?",
|
|
|
43 |
ids, distances = index.get_nns_by_vector(
|
44 |
face, 50, search_k=10000, include_distances=True
|
45 |
)
|
|
|
46 |
persons = {}
|
47 |
for p, distance in zip(ids, distances):
|
48 |
id = ANNOY_INDEX[p]
|
|
|
95 |
inputs=[
|
96 |
gr.components.Image(),
|
97 |
gr.components.Slider(label="threshold",minimum=0.0, maximum=30.0, value=20.0),
|
98 |
+
gr.components.Slider(label="results", minimum=0, maximum=50, value=3, step=1),
|
99 |
],
|
100 |
outputs=gr.outputs.JSON(label=""),
|
101 |
title="Who is in the photo?",
|
face.db
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8736a4b4f662d0e09630e1e3be81e81f7c45f1e5de38e0525d1c406edcb08e5
|
3 |
+
size 373736736
|
face.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
persons.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:09fc1011b1978c71215e85b7982c98ebbec3de8b2b79891675a74e232e1ca2a0
|
3 |
+
size 3021219
|