Zakia commited on
Commit
5c5b397
1 Parent(s): 33364e0

add diabetes_related_amputation_risk_calc

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Bismillahir Rahmaanir Raheem
2
+ # Almadadh Ya Gause RadiAllahu Ta'alah Anh - Ameen
3
+
4
+ # <font color=grey>DIabetes-related Amputation Risk Calculator (DIARC)</font>
5
+ # <b>_by Zakia Salod_</b>
6
+
7
+ import gradio as gr
8
+
9
+ def diabetes_related_amputation_risk_calc(age, gender, race, diabetes_type):
10
+ age = 36
11
+ gender = 'Female'
12
+ race = 'Asian'
13
+ diabetes_type = 'Type 1'
14
+ return age, gender, race, diabetes_type
15
+
16
+ iface = gr.Interface(
17
+ fn=diabetes_related_amputation_risk_calc,
18
+ inputs=["text", , "checkbox", "checkbox", "checkbox"])
19
+
20
+ iface.launch()