mariotawfik commited on
Commit
27f0f55
1 Parent(s): 7544bc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.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
 
 
127
  fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{user_id}")
128
  fhe_api.load()
129
 
130
+ encodings = np.array(encodings)
131
  quantized_encodings = fhe_api.model.quantize_input(encodings).astype(numpy.uint8)
132
  encrypted_quantized_encoding = fhe_api.quantize_encrypt_serialize(encodings)
133