Update README.md

cleaner code in readme
This commit is contained in:
Sefik Ilkin Serengil 2025-03-04 09:25:49 +00:00 committed by GitHub
parent 09969b10c3
commit 425d7797a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -413,11 +413,7 @@ onprem_cs = LightPHE(algorithm_name = "Paillier", precision = 19)
onprem_cs.export_keys("public.txt", public=True)
# build cryptosystem in cloud with only public key
cloud_cs = LightPHE(
algorithm_name = "Paillier",
precision = 19,
key_file = "public.txt",
)
cloud_cs = LightPHE(algorithm_name = "Paillier", precision = 19, key_file = "public.txt")
# find l2 normalized vector embeddings - VGG-Face already does
source_embedding = DeepFace.represent("img1.jpg")[0]["embedding"]