Skip to content

Commit be415d3

Browse files
committed
Replace rm -rf {model_name} with shutil.rmtree(model_name)
1 parent ecced97 commit be415d3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

19_training_and_deploying_at_scale.ipynb

+4-5
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,9 @@
240240
"metadata": {},
241241
"outputs": [],
242242
"source": [
243-
"#On Linux\n",
244-
"!rm -rf {model_name}\n",
245-
"#On Windows\n",
246-
"#!rd /s /q \"my_mnist_model\""
243+
"import shutil\n",
244+
"\n",
245+
"shutil.rmtree(model_name)"
247246
]
248247
},
249248
{
@@ -2071,7 +2070,7 @@
20712070
"name": "python",
20722071
"nbconvert_exporter": "python",
20732072
"pygments_lexer": "ipython3",
2074-
"version": "3.7.10"
2073+
"version": "3.8.12"
20752074
}
20762075
},
20772076
"nbformat": 4,

0 commit comments

Comments
 (0)