Spaces:
Runtime error
Runtime error
Update app.py
Browse files29 unmodified lines303132333435363790 unmodified lines12812913013113213313413513613713829 unmodified linesos.mkdir("tmp")# Wait 4 sec for the server to starttime.sleep(4)# Encrypted data limit for the browser to display90 unmodified linesfhe_api.load()encodings = np.array(encodings)print(encodings+"/n")quantized_encodings = fhe_api.model.quantize_input(encodings).astype(numpy.uint8)print(quantized_encodings+"/n")encrypted_quantized_encoding = fhe_api.quantize_encrypt_serialize(encodings)print(encrypted_quantized_encoding+"/n")numpy.save(f"tmp/tmp_encrypted_quantized_encoding_{user_id}.npy",29 unmodified lines303132333435363790 unmodified lines12812913013113213313413513613713829 unmodified linesos.mkdir("tmp")# Wait 5 sec for the server to starttime.sleep(5)# Encrypted data limit for the browser to display90 unmodified linesfhe_api.load()encodings = np.array(encodings)print(encodings)quantized_encodings = fhe_api.model.quantize_input(encodings).astype(numpy.uint8)print(quantized_encodings)encrypted_quantized_encoding = fhe_api.quantize_encrypt_serialize(encodings)print(encrypted_quantized_encoding)numpy.save(f"tmp/tmp_encrypted_quantized_encoding_{user_id}.npy",
app.py+5-5