mariotawfik commited on
Commit
d1b5444
1 Parent(s): fb70103
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -148,12 +148,14 @@ def encode_quantize(test_file, eval_key, encodings):
148
 
149
  encodings = np.array(encodings).reshape(1, -1)
150
 
151
- return encodings[0]
152
 
153
  def encrypt_encoded_quantize(encodings):
154
  fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{eval_key}")
155
  fhe_api.load()
156
 
 
 
157
  if isinstance(encodings, str):
158
  encodings = safe_eval(encodings)
159
 
 
148
 
149
  encodings = np.array(encodings).reshape(1, -1)
150
 
151
+ return encodings
152
 
153
  def encrypt_encoded_quantize(encodings):
154
  fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{eval_key}")
155
  fhe_api.load()
156
 
157
+ encodings = encodings[0]
158
+
159
  if isinstance(encodings, str):
160
  encodings = safe_eval(encodings)
161