Skip to content

Commit e7e6db8

Browse files
authored
Refactor if else statement for demo path
1 parent 302ea8d commit e7e6db8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

09_pytorch_model_deployment.ipynb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,12 +3110,9 @@
31103110
"# Remove files that might already exist there and create new directory\n",
31113111
"if foodvision_mini_demo_path.exists():\n",
31123112
" shutil.rmtree(foodvision_mini_demo_path)\n",
3113-
" foodvision_mini_demo_path.mkdir(parents=True, # make the parent folders?\n",
3114-
" exist_ok=True) # create it even if it already exists?\n",
3115-
"else:\n",
3116-
" # If the file doesn't exist, create it anyway\n",
3117-
" foodvision_mini_demo_path.mkdir(parents=True, \n",
3118-
" exist_ok=True)\n",
3113+
"# If the file doesn't exist, create it anyway\n",
3114+
"foodvision_mini_demo_path.mkdir(parents=True, \n",
3115+
" exist_ok=True)\n",
31193116
" \n",
31203117
"# Check what's in the folder\n",
31213118
"!ls demos/foodvision_mini/"

0 commit comments

Comments
 (0)