Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

  Apply Now

Project- How to build low-latency deep-learning-based flask app

9 / 17

Creating the Model Server Folder and Flask Server Folder

As discussed, we create a folder named Model-Server-Folder, inside which we shall later create:

  1. virtual environment named model-env
  2. the requirements.txt file which is the list of all the necessary packages along with their corresponding versions.

  3. model server code file resnet_model_server.py

Also, we create a folder named Flask-Server-Folder, inside which we shall later create:

  1. virtual environment named flask-env
  2. the requirements.txt file which is the list of all the necessary packages along with their corresponding versions.
  3. flask server file named app.py
  4. static folder
  5. templates folder

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 Model-Server-Folder directory should be created inside the Flask-ZMQ-App-Folder directory. So make sure you are in the directory Flask-ZMQ-App-Folder. You could check your present working directory using the command:

    pwd
    

    This command should output the path:

    /home/$USER/Flask-ZMQ-App-Folder
    

    If the path displayed is not the same as the above, switch to the Flask-ZMQ-App-Folder using

    cd ~/Flask-ZMQ-App-Folder
    
  • Create a directory named Model-Server-Folder inside Flask-ZMQ-App-Folder using mkdir command.

  • Also create a directory named Flask-Server-Folder inside Flask-ZMQ-App-Folder using mkdir command.

  • Switch to Model-Server-Folder which is inside the Flask-ZMQ-App-Folder using cd command.

Get Hint See Answer


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

Loading comments...