neaten the code and added missing bracket for inputs
Browse files
app.py
CHANGED
@@ -10,8 +10,16 @@ def greet(age, gender, race, diabetes_type):
|
|
10 |
|
11 |
|
12 |
title = "DIabetes-related Amputation Risk Calculator (DIARC)"
|
|
|
13 |
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."
|
14 |
|
15 |
|
16 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
iface.launch()
|
|
|
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=greet,
|
19 |
+
title=title,
|
20 |
+
description=description,
|
21 |
+
inputs=[gr.inputs.Number(default=None, label=None), gr.inputs.Dropdown(["Female", "Male"], default="Male"), gr.inputs.Dropdown(["Asian", "Black", "Coloured", "White", "Other"], default="Asian"), gr.inputs.Dropdown(["1", "3"], default="1")],
|
22 |
+
outputs="text",
|
23 |
+
theme="darkdefault")
|
24 |
+
|
25 |
iface.launch()
|