Project - How to Deploy an Image Classification Model using Flask

7 / 15

Creating the Static Directory

As discussed previously, we create the static directory to contain static files such as JS, CSS, and images by Flask.

We first create the static directory now and then create the css and uploads directory in the subsequent slides.

We now use mkdir command to do the same and switch into the directory using cd command.

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 static directory should be created inside the Image-Classification-App directory. So make sure you are in the directory Image-Classification-App. You could check your present working directory using the command:

    pwd
    

    This command should output the path:

    /home/$USER/Image-Classification-App
    

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

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

  • Change to the directory static using cd command.

Get Hint See Answer


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...