kmrmanish commited on
Commit
f0b42e7
·
1 Parent(s): e34216c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -0
app.py CHANGED
@@ -75,3 +75,38 @@ def main():
75
 
76
  if __name__ == '__main__':
77
  main()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
  if __name__ == '__main__':
77
  main()
78
+
79
+
80
+ if __name__ == '__main__':
81
+ main()
82
+
83
+ # Dummy Entries or Demo for showcasing
84
+ st.markdown('## Demo - Test with Dummy Entries')
85
+
86
+ # You can set default values for the inputs to showcase the prediction functionality
87
+ default_values = {
88
+ "Number of Pregnancies": 5,
89
+ "Glucose Level": 130,
90
+ "Blood Pressure Value": 80,
91
+ "Skin Thickness Value": 30,
92
+ "Insulin Level": 100,
93
+ "BMI Value": 35,
94
+ "Diabetes Pedigree Function Value": 0.5,
95
+ "Age of the Person": 40
96
+ }
97
+
98
+ demo_button = st.button('Run Demo')
99
+
100
+ if demo_button:
101
+ demo_input_data = [
102
+ default_values["Number of Pregnancies"],
103
+ default_values["Glucose Level"],
104
+ default_values["Blood Pressure Value"],
105
+ default_values["Skin Thickness Value"],
106
+ default_values["Insulin Level"],
107
+ default_values["BMI Value"],
108
+ default_values["Diabetes Pedigree Function Value"],
109
+ default_values["Age of the Person"]
110
+ ]
111
+ demo_diagnosis = diabetes_prediction(demo_input_data, selected_model)
112
+ st.success(f'Demo Result: {demo_diagnosis}')