sort out spacing
Browse files
app.py
CHANGED
|
@@ -7,7 +7,6 @@ import pandas as pd
|
|
| 7 |
from pycaret.classification import load_model, predict_model
|
| 8 |
|
| 9 |
|
| 10 |
-
|
| 11 |
# load the trained model for predictions
|
| 12 |
model = load_model('tuned_blend_specific_model_19112021')
|
| 13 |
|
|
@@ -36,7 +35,6 @@ def predict_amputation(age, gender, race, diabetes_type):
|
|
| 36 |
return str(predict(model=model, input_df=input_df)) # calls the predict function when 'submit' is clicked
|
| 37 |
|
| 38 |
|
| 39 |
-
|
| 40 |
title = "DIabetes-related Amputation Risk Calculator (DIARC)"
|
| 41 |
|
| 42 |
description = "A diabetes-related amputation machine learning model trained on the diabetes dataset from the Inkosi Albert Luthuli Central Hospital (IALCH) in Durban, KwaZulu-Natal, South Africa."
|
|
@@ -44,8 +42,6 @@ description = "A diabetes-related amputation machine learning model trained on t
|
|
| 44 |
article = "<p style='text-align: center'><span style='font-size: 15pt;'>Copyright © DIARC. 2021. All Rights Reserved. Contact Us: <a href='mailto:smtshali@wol.co.za'>Dr Sifisiso Mtshali</a> or <a href='mailto:mahomedo@ukzn.ac.za'>Dr Ozayr Mahomed</a></span></p>"
|
| 45 |
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
iface = gr.Interface(
|
| 50 |
fn=predict_amputation,
|
| 51 |
title=title,
|
|
|
|
| 7 |
from pycaret.classification import load_model, predict_model
|
| 8 |
|
| 9 |
|
|
|
|
| 10 |
# load the trained model for predictions
|
| 11 |
model = load_model('tuned_blend_specific_model_19112021')
|
| 12 |
|
|
|
|
| 35 |
return str(predict(model=model, input_df=input_df)) # calls the predict function when 'submit' is clicked
|
| 36 |
|
| 37 |
|
|
|
|
| 38 |
title = "DIabetes-related Amputation Risk Calculator (DIARC)"
|
| 39 |
|
| 40 |
description = "A diabetes-related amputation machine learning model trained on the diabetes dataset from the Inkosi Albert Luthuli Central Hospital (IALCH) in Durban, KwaZulu-Natal, South Africa."
|
|
|
|
| 42 |
article = "<p style='text-align: center'><span style='font-size: 15pt;'>Copyright © DIARC. 2021. All Rights Reserved. Contact Us: <a href='mailto:smtshali@wol.co.za'>Dr Sifisiso Mtshali</a> or <a href='mailto:mahomedo@ukzn.ac.za'>Dr Ozayr Mahomed</a></span></p>"
|
| 43 |
|
| 44 |
|
|
|
|
|
|
|
| 45 |
iface = gr.Interface(
|
| 46 |
fn=predict_amputation,
|
| 47 |
title=title,
|