Spaces:
Running
Running
update on 2023-02-18
Browse files
app.py
CHANGED
@@ -23,7 +23,8 @@ index.load(f"face.db")
|
|
23 |
ANNOY_INDEX = json.load(open(f"face.json"))
|
24 |
|
25 |
with pyzipper.AESZipFile('persons.zip') as zf:
|
26 |
-
|
|
|
27 |
PERFORMER_DB = json.loads(zf.read('performers.json'))
|
28 |
|
29 |
|
|
|
23 |
ANNOY_INDEX = json.load(open(f"face.json"))
|
24 |
|
25 |
with pyzipper.AESZipFile('persons.zip') as zf:
|
26 |
+
password = os.getenv("VISAGE_KEY","").encode('ascii')
|
27 |
+
zf.setpassword(password)
|
28 |
PERFORMER_DB = json.loads(zf.read('performers.json'))
|
29 |
|
30 |
|
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:8e34c90cadc50e77ae848d5521f9d5d630894176b00c7baf8f29af1924165c41
|
3 |
+
size 375379680
|
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:22a175a153c70946d10cb3e28d9af36e845dfa144b8d9b007da080cbfbbb455e
|
3 |
+
size 3037354
|