Thomas Chardonnens commited on
Commit
5c8d2eb
1 Parent(s): d541dcb

super prints

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -117,18 +117,25 @@ def keygen():
117
  client = FHEModelClient(path_dir=SEIZURE_DETECTION_MODEL_PATH, key_dir=KEYS_PATH / f"{user_id}")
118
  client.load()
119
 
 
 
120
  # Creates the private and evaluation keys on the client side
121
  client.generate_private_and_evaluation_keys()
122
 
 
123
  # Get the serialized evaluation keys
124
  serialized_evaluation_keys = client.get_serialized_evaluation_keys()
125
  assert isinstance(serialized_evaluation_keys, bytes)
126
 
 
 
127
  # Save the evaluation key
128
  evaluation_key_path = KEYS_PATH / f"{user_id}/evaluation_key"
129
  with evaluation_key_path.open("wb") as f:
130
  f.write(serialized_evaluation_keys)
131
 
 
 
132
  return (user_id, True)
133
 
134
  def encrypt(user_id, input_image):
 
117
  client = FHEModelClient(path_dir=SEIZURE_DETECTION_MODEL_PATH, key_dir=KEYS_PATH / f"{user_id}")
118
  client.load()
119
 
120
+ print("Super print ici")
121
+
122
  # Creates the private and evaluation keys on the client side
123
  client.generate_private_and_evaluation_keys()
124
 
125
+ print("Super print ici 2")
126
  # Get the serialized evaluation keys
127
  serialized_evaluation_keys = client.get_serialized_evaluation_keys()
128
  assert isinstance(serialized_evaluation_keys, bytes)
129
 
130
+ print("Super print ici 3")
131
+
132
  # Save the evaluation key
133
  evaluation_key_path = KEYS_PATH / f"{user_id}/evaluation_key"
134
  with evaluation_key_path.open("wb") as f:
135
  f.write(serialized_evaluation_keys)
136
 
137
+ print("Super print ici 4")
138
+
139
  return (user_id, True)
140
 
141
  def encrypt(user_id, input_image):