Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def encrypt_encoded_quantize(encodings, user_id, eval_key):
|
|
127 |
fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{user_id}")
|
128 |
fhe_api.load()
|
129 |
|
130 |
-
encodings = np.
|
131 |
quantized_encodings = fhe_api.model.quantize_input(encodings).astype(numpy.uint8)
|
132 |
encrypted_quantized_encoding = fhe_api.quantize_encrypt_serialize(encodings)
|
133 |
|
|
|
127 |
fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{user_id}")
|
128 |
fhe_api.load()
|
129 |
|
130 |
+
encodings = np.ndarray(encodings)
|
131 |
quantized_encodings = fhe_api.model.quantize_input(encodings).astype(numpy.uint8)
|
132 |
encrypted_quantized_encoding = fhe_api.quantize_encrypt_serialize(encodings)
|
133 |
|