#NoPayJan Offer - Access all CloudxLab Courses for free between 1st to 31st Jan

  Enroll Now >>

Getting the Flask-Server-Folder Ready

Let us proceed to make the Flask-Server-Folder ready.

INSTRUCTIONS
  • To stop the execution of resent_model_server.py, we click Ctrl+Z.

  • Then run command ps, and get the process id for the script.

enter image description here

  • Deactivate the virtual environment, if any:

    deactivate
    
  • Make sure to be in Flask-ZMQ-App-Folder/Flask-Server-Folder :

    cd ~/Flask-ZMQ-App-Folder/Flask-Server-Folder
    
  • Now copy the content of the Image-Classification-App folder - except its virtual environment Img-Class-Env - into Flask-ZMQ-App-Folder/Flask-Server-Folder that we have previously created:

    rsync -av --progress ~/Image-Classification-App/* . --exclude Img-Class-Env/
    
    • Create a new virtual environment named flask-env. Make sure to be in Flask-Server-Folder.

      cd ~/Flask-ZMQ-App-Folder/Flask-Server-Folder
      virtualenv flask-env
      
    • Let us activate the environment flask-env:

      source flask-env/bin/activate
      
  • Install the following packages:

    pip install Flask==1.1.2
    pip install zmq==0.0.0
    
  • Now create the requirements.txt:

    pip freeze > requirements.txt
    

No hints are availble for this assesment

Answer is not availble for this assesment


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

Loading comments...