I was using Flask few months ago, but when I discover FASTAPI my life change

The official documentation :

https://fastapi.tiangolo.com/tutorial/

To create a very easy and quick API on Python.

Select your python version, interpreter, and packge isntall pip or pip3

  1. Create folder
  2. Create git init
  3. Create via pip3 virtual environment :

https://realpython.com/python-virtual-environments-a-primer/

# Python 3
$ python3 -m venv env

4. Install FastAPI lib and uviocorn

check that whole packe are installed on env/lib/bin

And run the code.

That’s all folks!

The focus of this topic is explain the step by step to debug any web app on IIS (internet information services)using, visual studio and anydesk.

  1. Install anydesk.
    https://anydesk.com/en
  2. Install visual studio community.
    https://visualstudio.microsoft.com/downloads/
  3. Install on remote computer (this PC or server contains the publish file to run the app) extension.
    https://aka.ms/vs/16/release/RemoteTools.amd64ret.esn.exe

In this article I would like to resume the steps that this link provide:

https://code.visualstudio.com/docs/remote/ssh#_getting-started

  1. Install VisualCode.
  2. Install Remote ssh extension por VisuaCode
  3. You will need to install remote server on Ubuntu from this link you can choose the version and your architecture.

https://code.visualstudio.com/docs/remote/troubleshooting#_installing-a-supported-ssh-server

Run all command with the root…

  1. Install in your PC

Take care with the command in my mac I am usign pip3 and python3

pip3 install flask
pip3 install nltk
pip3 install pandas
pip3 install scikit-learn

To close port : Identify port and kill it

lsof -i :5000
kill 38223

Go to repo and download the…

I will try to deploy a decision tree classifier model in my local machine and use predict via postman, the original post is :
https://towardsdatascience.com/deploy-your-machine-learning-model-as-a-rest-api-4fe96bf8ddcc

  1. Install joblib

pip install joblib

this import joblib create a new file (model) you can read and make prediction.

The sample if for classifier the flower with load_iris dataset from sklearn

https://github.com/sebastianvz/DeloyModel-ML

Sebastian Velez Zuluaga

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store