Thomas Chardonnens commited on
Commit ·
5c8d2eb
1
Parent(s): d541dcb
super prints
Browse files116 unmodified lines117118119120121122123124125126127128129130131132133134116 unmodified linesclient = FHEModelClient(path_dir=SEIZURE_DETECTION_MODEL_PATH, key_dir=KEYS_PATH / f"{user_id}")client.load()# Creates the private and evaluation keys on the client sideclient.generate_private_and_evaluation_keys()# Get the serialized evaluation keysserialized_evaluation_keys = client.get_serialized_evaluation_keys()assert isinstance(serialized_evaluation_keys, bytes)# Save the evaluation keyevaluation_key_path = KEYS_PATH / f"{user_id}/evaluation_key"with evaluation_key_path.open("wb") as f:f.write(serialized_evaluation_keys)return (user_id, True)def encrypt(user_id, input_image):116 unmodified lines117118119120121122123124125126127128129130131132133134135136137138139140141116 unmodified linesclient = FHEModelClient(path_dir=SEIZURE_DETECTION_MODEL_PATH, key_dir=KEYS_PATH / f"{user_id}")client.load()print("Super print ici")# Creates the private and evaluation keys on the client sideclient.generate_private_and_evaluation_keys()print("Super print ici 2")# Get the serialized evaluation keysserialized_evaluation_keys = client.get_serialized_evaluation_keys()assert isinstance(serialized_evaluation_keys, bytes)print("Super print ici 3")# Save the evaluation keyevaluation_key_path = KEYS_PATH / f"{user_id}/evaluation_key"with evaluation_key_path.open("wb") as f:f.write(serialized_evaluation_keys)print("Super print ici 4")return (user_id, True)def encrypt(user_id, input_image):
app.py+7