mariotawfik commited on
Commit
a6ced47
·
verified ·
1 Parent(s): d6bafb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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[0],quantized_encodings[0],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")
 
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")