Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -132,9 +132,8 @@ def encode_quantize(test_file, eval_key, encodings):
|
|
132 |
def encrypt_encoded_quantize(encodings):
|
133 |
fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{eval_key}")
|
134 |
fhe_api.load()
|
135 |
-
|
136 |
-
|
137 |
-
encodings = np.array(data).reshape(1, -1)
|
138 |
quantized_encodings = fhe_api.model.quantize_input(encodings).astype(numpy.uint8)
|
139 |
encrypted_quantized_encoding = fhe_api.quantize_encrypt_serialize(encodings)
|
140 |
|
|
|
132 |
def encrypt_encoded_quantize(encodings):
|
133 |
fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{eval_key}")
|
134 |
fhe_api.load()
|
135 |
+
|
136 |
+
encodings = np.array(encodings)
|
|
|
137 |
quantized_encodings = fhe_api.model.quantize_input(encodings).astype(numpy.uint8)
|
138 |
encrypted_quantized_encoding = fhe_api.quantize_encrypt_serialize(encodings)
|
139 |
|