Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dhw059 authored Apr 10, 2024
1 parent 545623f commit 248e5b0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,23 +219,6 @@
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import gzip\n",
"import shutil\n",
"\n",
"def compress_json(input_file, output_file):\n",
" with open(input_file, 'rb') as f_in:\n",
" with gzip.open(output_file, 'wb') as f_out:\n",
" shutil.copyfileobj(f_in, f_out)\n",
"\n",
"compress_json('results.json', 'results.json.gz')"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
Binary file not shown.

0 comments on commit 248e5b0

Please sign in to comment.