wording changes
Browse files
app.py
CHANGED
|
@@ -4,18 +4,18 @@
|
|
| 4 |
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
-
def
|
| 8 |
return "ALLAH"
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
title = "DIabetes-related Amputation Risk Calculator (DIARC)"
|
| 13 |
|
| 14 |
-
description = "A diabetes-related amputation machine learning model trained on the diabetes dataset from the Inkosi Albert Luthuli Central Hospital (IALCH), KwaZulu-Natal, South Africa."
|
| 15 |
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
| 18 |
-
fn=
|
| 19 |
title=title,
|
| 20 |
description=description,
|
| 21 |
inputs=[gr.inputs.Number(default=None), gr.inputs.Dropdown(["Female", "Male"], default="Male"), gr.inputs.Dropdown(["Asian", "Black", "Coloured", "White", "Other"], default="Asian"), gr.inputs.Dropdown(["1", "2"], default="1")],
|
|
|
|
| 4 |
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
+
def predict_amputation(age, gender, race, diabetes_type):
|
| 8 |
return "ALLAH"
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
title = "DIabetes-related Amputation Risk Calculator (DIARC)"
|
| 13 |
|
| 14 |
+
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."
|
| 15 |
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
| 18 |
+
fn=predict_amputation,
|
| 19 |
title=title,
|
| 20 |
description=description,
|
| 21 |
inputs=[gr.inputs.Number(default=None), gr.inputs.Dropdown(["Female", "Male"], default="Male"), gr.inputs.Dropdown(["Asian", "Black", "Coloured", "White", "Other"], default="Asian"), gr.inputs.Dropdown(["1", "2"], default="1")],
|