Mayank-2002 commited on
Commit
25418f2
·
1 Parent(s): 2fdf8ae

Update st.success application

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -79,8 +79,8 @@ if selected == "Diabetes Prediction":
79
  diab_diagnosis = "The person is diabetic"
80
  else:
81
  diab_diagnosis = "The person is not diabetic"
82
-
83
- st.success(diab_diagnosis)
84
 
85
 
86
  # Heart Disease Prediction Page
@@ -161,8 +161,8 @@ if selected == "Heart Disease Prediction":
161
  heart_diagnosis = "The person is having heart disease"
162
  else:
163
  heart_diagnosis = "The person does not have any heart disease"
164
-
165
- st.success(heart_diagnosis)
166
 
167
 
168
  # Parkinson's Prediction Page
@@ -276,5 +276,5 @@ if selected == "Parkinsons Prediction":
276
  parkinsons_diagnosis = "The person has Parkinson's disease"
277
  else:
278
  parkinsons_diagnosis = "The person does not have Parkinson's disease"
279
-
280
- st.success(parkinsons_diagnosis)
 
79
  diab_diagnosis = "The person is diabetic"
80
  else:
81
  diab_diagnosis = "The person is not diabetic"
82
+ if diab_diagnosis != "":
83
+ st.success(diab_diagnosis)
84
 
85
 
86
  # Heart Disease Prediction Page
 
161
  heart_diagnosis = "The person is having heart disease"
162
  else:
163
  heart_diagnosis = "The person does not have any heart disease"
164
+ if heart_diagnosis != "":
165
+ st.success(heart_diagnosis)
166
 
167
 
168
  # Parkinson's Prediction Page
 
276
  parkinsons_diagnosis = "The person has Parkinson's disease"
277
  else:
278
  parkinsons_diagnosis = "The person does not have Parkinson's disease"
279
+ if parkinsons_diagnosis != "":
280
+ st.success(parkinsons_diagnosis)