GithubHelp home page GithubHelp logo

theonlyjohnny / deploy-mlm-flask-heroku Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elizabethts/deploy-mlm-flask-heroku

0.0 1.0 0.0 44 KB

Deploy a ML model with Flask to Heroku

Home Page: https://towardsdatascience.com/create-an-api-to-deploy-machine-learning-models-using-flask-and-heroku-67a011800c50

License: MIT License

Jupyter Notebook 93.98% Python 6.02%

deploy-mlm-flask-heroku's Introduction

Deploy ML model with Flask to Heroku

Click the button below to quickly clone and deploy into your own Heroku acount. If you don't have one it'll prompt you to setup a free one.

Deploy

Once deployed to your Heroku instance run the following:

curl -s -XPOST 'https://<name-of-your-heroku-app>.herokuapp.com/' -d '{"Pclass":3,"Age":2,"SibSp":1,"Fare":50}' -H 'accept-content: application/json'

Alternatively a simple python script:

import requests
import json
url = 'https://<name-of-your-heroku-app>.herokuapp.com/'
data = {"Pclass":3, "Age":2, "SibSp":1, "Fare":50}
response = requests.post(url, json.dumps(data))
print(response.json())

Article

You can read the full article that was published on Towards Data Science

Acknowlegements

Thank you to Josh Peak who added the button for heroku deployment

deploy-mlm-flask-heroku's People

Contributors

elizabethts avatar neozenith avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.