Skip to content

Diabet Estimator Example ml-fastapi application for healthuniverse.com/ hackathon.

Notifications You must be signed in to change notification settings

SirmaXX/indicator_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

indicator_service

Example ml-fastapi application for https://www.healthuniverse.com/ hackathon.

Diabet Estimator
source of dataset :https://www.kaggle.com/datasets/alexteboul/diabetes-health-indicators-dataset

#if you want to run only jupyter notebook you can reach from this link : https://www.kaggle.com/code/sirmax/diabet-indicator/notebook

how to run software

type in the command line :python3 main.py

how to run test

open the tests folder and type in the command line :pytest

how to use software or service

1.Browser

If you run software open the browser and click this link:http://0.0.0.0:8000

docs

2.Use with Swagger Docs

If you run software open the browser and click this link:http://0.0.0.0:8000/docs

docs

3.Use with Postman

postman

4. Use with Python Script

import requests import json

url = "http://0.0.0.0:8000/predict"

payload = json.dumps({ "features": [ 1, 2, 21, 1, 3 ] }) headers = { 'Content-Type': 'application/json' }

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

About

Diabet Estimator Example ml-fastapi application for healthuniverse.com/ hackathon.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages