We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9b81f commit cfe25c3Copy full SHA for cfe25c3
projects/aries-fl/hospital/hospital.py
@@ -68,14 +68,15 @@ def _register_agent_listeners(self):
68
def _ml_messages_handler(self, payload):
69
70
connection_id = payload["connection_id"]
71
+ content = payload["content"]
72
print(f"ML Message from {connection_id}")
73
74
if connection_id in self.trusted_connection_ids:
75
print("Open file")
76
try:
77
f = open("untrained_model.pt", "wb+")
78
# self.log(bytes.fromhex(message["content"]))
- byte_message = bytes.fromhex(payload["content"])
79
+ byte_message = bytes.fromhex(content)
80
f.write(byte_message)
81
f.close()
82
0 commit comments