Project - How to Deploy an Image Classification Model using Flask

You are currently auditing this course.
9 / 15

Creating the Uploads Directory

As discussed previously, we create the uploads directory to store the image uploaded to our app. This stored image will be used to display it along with the predictions.

Note:

  • We can create a new directory named myDir by using the command mkdir myDir.

  • We can change to the directory named myDir by using the command cd myDir.

INSTRUCTIONS
  • This uploads directory should be created inside the static directory of the Image-Classification-App directory. So make sure you are in the directory Image-Classification-App/static. You could check your present working directory using the command:

    pwd
    

    This command should output the path:

    /home/$USER/Image-Classification-App/static
    

    If the path displayed is not the same as the above, switch to the Image-Classification-App/static using

    cd ~
    cd Image-Classification-App/static
    
  • Now, create a new directory named uploads using the mkdir command.

  • Change to the directory uploads using cd command.

Get Hint See Answer

Loading comments...