huhuhang / titanic-demo

πŸ›³ Titanic Prediction

Home Page:https://titanic-demo.onrender.com

Repository from Github https://github.comhuhuhang/titanic-demoRepository from Github https://github.comhuhuhang/titanic-demo

πŸ›³ Titanic Prediction


Usage

Run python run.py locally to start the Flask web service, or use the Heroku API:

import requests

sample = [{"pclass": 1, "sex": "male", "embarked": "C"},
          {"pclass": 2, "sex": "female", "embarked": "S"},
          {"pclass": 3, "sex": "male", "embarked": "Q"},
          {"pclass": 3, "sex": "female", "embarked": "S"}]
          
requests.post(url="https://titanic-demo.onrender.com", json=sample).content
{"predict":["no","yes","no","no"]}

About

πŸ›³ Titanic Prediction

https://titanic-demo.onrender.com


Languages

Language:Python 96.9%Language:Procfile 3.1%