Deploy Machine Learning Model using Flask




[ad_1]

Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries.[3] It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions. However, Flask supports extensions that can add application features as if they were implemented in Flask itself. Extensions exist for object-relational mappers, form validation, upload handling, various open authentication technologies and several common framework related tools. Extensions are updated far more regularly than the core Flask program.

#FlaskmodelDeployment

Github link: https://github.com/krishnaik06/Deployment-flask

You can buy my book where I have provided a detailed explanation of how we can use Machine Learning, Deep Learning in Finance using python

url: https://www.amazon.in/Hands-Python-Finance-implementing-strategies/dp/1789346371/ref=sr_1_1?keywords=krish+naik&qid=1560675332&s=gateway&sr=8-1

Source


[ad_2]

Comment List

  • Krish Naik
    December 29, 2020

    Is it using Restfull Api's?

  • Krish Naik
    December 29, 2020

    please can you help me with this problem anytime I run the Flask

    ValueError: Found array with 0 feature(s) (shape=(1, 0)) while a minimum of 1 is required.

  • Krish Naik
    December 29, 2020

    how to can input image to predict

  • Krish Naik
    December 29, 2020

    Hi…I am getting the output in json format and used js and jQuery post call …how to output the data to screen. Can u please suggest

  • Krish Naik
    December 29, 2020

    Hi I am unable to run it on my Macbook using Anaconda Spyder

  • Krish Naik
    December 29, 2020

    Im getting this error in pycharm as well as in spyder. I couldn't be able to continue with the deployment part coz' of this error.

  • Krish Naik
    December 29, 2020

    krish could you please help me out with this error, i couldn't be able overcome from this:
    ValueError: Buffer dtype mismatch, expected 'SIZE_t' but got 'long long'

  • Krish Naik
    December 29, 2020

    Those who want to fix the issue with requests.py (Direct API calls through request):

    Fix line 25 in app.py: @app.route('/predict_api',methods=['GET'])
    Fix line 4 in requests.py: r = requests.get(url,json={'age':25, 'marital_status':1, 'income':45000})

    Keep the app.py server running on command prompt.
    If the app is running on a different url, fix then fix line 3 in requests.py to the url on which app.py is running
    Example – url = 'http://127.0.0.1:5000/predict_api'

  • Krish Naik
    December 29, 2020

    Thank you for a great tutorial! I followed your tutorials but I got error message on the web page saying {"msg":"Try POSTing to the /predict endpoint with an RGB image attachment"}. Do you know how to solve this problem?

  • Krish Naik
    December 29, 2020

    sir if we want to input 5 values then what changes should we make?? please answer!!!
    thanks sir!

  • Krish Naik
    December 29, 2020

    Thanks Krish

  • Krish Naik
    December 29, 2020

    Hi Thanks for your useful video. However, If we already have the machine learning model trained I don't think we still need the dataset and model.py in the templates!

  • Krish Naik
    December 29, 2020

    Everything is well explained. Thank you Krish

  • Krish Naik
    December 29, 2020

    Sir I'm getting an internal server error? can anybody please help

  • Krish Naik
    December 29, 2020

    dataset['test_score'].fillna(dataset['test_score'].mean(), inplace=True) . iam getting error after this statement

  • Krish Naik
    December 29, 2020

    plz send the hiring.csv data set

  • Krish Naik
    December 29, 2020

    Thank you for this video it's really helpful. I just have a qtn on the html code. Did you write it in spyder and save it as html? I'm not sure how to translate to anaconda that it's infact html and not the "usual" python code. Thank you.

  • Krish Naik
    December 29, 2020

    Thanks so much for this

  • Krish Naik
    December 29, 2020

    I did same things myself got error… Downloaded zip from github tried agin… error.. please help… Predict button opening new page and showing this page isn't working😭

  • Krish Naik
    December 29, 2020

    Hi Krish…how can one deploy trained model on Nvidia Jetson board to detect object ?

  • Krish Naik
    December 29, 2020

    very helpful!!! thankssss

  • Krish Naik
    December 29, 2020

    I was looking exactly for this!
    Thanks a lot for such a detailed video!

  • Krish Naik
    December 29, 2020

    Hi brother,
    I have built a custom chatbot using tensorflow on spyder. Please tell me how to built an interface for chatting with it.
    Please reply
    Gmail – sachin.s.kabadi10@gmail.com

  • Krish Naik
    December 29, 2020

    At last, you must running your dev server and then run the request.py script in another console.

  • Krish Naik
    December 29, 2020

    Very nicely done tutorial. Thank you.

  • Krish Naik
    December 29, 2020

    👍🏻

Write a comment