Zakia commited on
Commit
dc81ffd
1 Parent(s): a7e540f

change input_df

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def predict(model, input_df):
31
  # the parameters in this function, actually gets the inputs for the prediction
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
 
 
31
  # the parameters in this function, actually gets the inputs for the prediction
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