mariotawfik commited on
Commit
0cc3b77
1 Parent(s): 27f0f55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -128,8 +128,11 @@ def encrypt_encoded_quantize(encodings, user_id, eval_key):
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
 
134
  numpy.save(
135
  f"tmp/tmp_encrypted_quantized_encoding_{user_id}.npy",
 
128
  fhe_api.load()
129
 
130
  encodings = np.array(encodings)
131
+ print(encodings+"/n")
132
  quantized_encodings = fhe_api.model.quantize_input(encodings).astype(numpy.uint8)
133
+ print(quantized_encodings+"/n")
134
  encrypted_quantized_encoding = fhe_api.quantize_encrypt_serialize(encodings)
135
+ print(encrypted_quantized_encoding+"/n")
136
 
137
  numpy.save(
138
  f"tmp/tmp_encrypted_quantized_encoding_{user_id}.npy",