Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ def encrypt_encoded_quantize(encodings):
|
|
145 |
# Compute size
|
146 |
encrypted_quantized_encoding_shorten = list(encrypted_quantized_encoding)[:ENCRYPTED_DATA_BROWSER_LIMIT]
|
147 |
encrypted_quantized_encoding_shorten_hex = "".join(f"{i:02x}" for i in encrypted_quantized_encoding_shorten)
|
148 |
-
return (encodings
|
149 |
|
150 |
def run_fhe(user_id):
|
151 |
encoded_data_path = Path(f"tmp/tmp_encrypted_quantized_encoding_{user_id}.npy")
|
|
|
145 |
# Compute size
|
146 |
encrypted_quantized_encoding_shorten = list(encrypted_quantized_encoding)[:ENCRYPTED_DATA_BROWSER_LIMIT]
|
147 |
encrypted_quantized_encoding_shorten_hex = "".join(f"{i:02x}" for i in encrypted_quantized_encoding_shorten)
|
148 |
+
return (encodings,quantized_encodings,encrypted_quantized_encoding_shorten_hex)
|
149 |
|
150 |
def run_fhe(user_id):
|
151 |
encoded_data_path = Path(f"tmp/tmp_encrypted_quantized_encoding_{user_id}.npy")
|