criticalDanger commited on
Commit
a63b07a
1 Parent(s): f518306

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def predict_heart_disease(Age, Gender, BMI, Smoking, PhysicalActivity, DietQuali
24
  ExerciseInduced = 1 if ExerciseInduced else 0
25
  input_data = np.array([[Age, Gender, BMI, Smoking, PhysicalActivity, DietQuality, SleepQuality, PollutionExposure, PollenExposure, DustExposure, PetAllergy, FamilyHistoryAsthma, HistoryOfAllergies, Eczema, HayFever, GastroesophagealReflux, Wheezing, ShortnessOfBreath, ChestTightness, Coughing, NighttimeSymptoms, ExerciseInduced]])
26
  prediction = model.predict(input_data)
27
- return 'You have a significant chance of having asthma.' if prediction[0] == 1 else 'You possibly don't have asthma.'
28
 
29
  # Define the input components
30
  inputs = [
 
24
  ExerciseInduced = 1 if ExerciseInduced else 0
25
  input_data = np.array([[Age, Gender, BMI, Smoking, PhysicalActivity, DietQuality, SleepQuality, PollutionExposure, PollenExposure, DustExposure, PetAllergy, FamilyHistoryAsthma, HistoryOfAllergies, Eczema, HayFever, GastroesophagealReflux, Wheezing, ShortnessOfBreath, ChestTightness, Coughing, NighttimeSymptoms, ExerciseInduced]])
26
  prediction = model.predict(input_data)
27
+ return 'You have a significant chance of having asthma.' if prediction[0] == 1 else 'You possibly do not have asthma.'
28
 
29
  # Define the input components
30
  inputs = [