rquanx / titanic-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🛳 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


Languages

Language:Python 96.9%Language:Procfile 3.1%