File size: 855 Bytes
1e20656
 
5c5b397
 
 
 
8181851
91c6517
5c5b397
4920d02
 
 
12cd932
8181851
7d9a734
 
12cd932
8181851
12cd932
 
9e56ec4
27bf8b4
 
12cd932
0707d46
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#Bismillahir Rahmaanir Raheem
#Almadadh Ya Gause RadiAllahu Ta'alah Anh - Ameen


import gradio as gr

def predict_amputation(age, gender, race, diabetes_type):
    return "ALLAH"



title = "DIabetes-related Amputation Risk Calculator (DIARC)"

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."


iface = gr.Interface(
		fn=predict_amputation, 
		title=title, 
		description=description, 
		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")], 
		outputs="text",
		theme="darkdefault")
		
if __name__ == "__main__":
	iface.launch()