Skip to content

Commit

Permalink
Saving and loading from json
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaragomes committed Aug 28, 2023
1 parent 49cb712 commit 421a84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion federated_learning_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def receive_model(self, request: Request) -> web.Response:
json.dump("", f)

async with aiofiles.open(file_path, "a+") as f:
# TODO: might need to change something here, as we are writing a simple json
# TODO: might need to change something here
async for data in request.content.iter_chunked(10240):
await json.dump(data, f)

Expand Down

0 comments on commit 421a84f

Please sign in to comment.