Zakia commited on
Commit
a7e540f
1 Parent(s): 6ed263b

test predict on hard-coded values

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def predict(model, input_df):
32
  def predict_amputation(age, gender, race, diabetes_type):
33
  input_dict = {"AGE": 70.0, "GENDER_F": 0.0, "RACE_Asian": 1.0, "RACE_Black": 0.0, "RACE_Coloured": 0.0, "RACE_Other": 0.0, "RACE_White": 0.0, "DIABETES_CLASS_Type 1 diabetes":0.0}
34
  input_df = pd.DataFrame([input_dict])
35
- return "ALLAH"#+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)"
 
32
  def predict_amputation(age, gender, race, diabetes_type):
33
  input_dict = {"AGE": 70.0, "GENDER_F": 0.0, "RACE_Asian": 1.0, "RACE_Black": 0.0, "RACE_Coloured": 0.0, "RACE_Other": 0.0, "RACE_White": 0.0, "DIABETES_CLASS_Type 1 diabetes":0.0}
34
  input_df = pd.DataFrame([input_dict])
35
+ return "ALLAH: "+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)"