Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,8 +86,7 @@ with st.expander("🔹 **Medical Information**", expanded=True):
|
|
| 86 |
|
| 87 |
if st.button("🔍 Predict Risk"):
|
| 88 |
try:
|
| 89 |
-
|
| 90 |
-
|
| 91 |
prediction = model.predict(input_data)[0]
|
| 92 |
probability = model.predict_proba(input_data)[0][1] * 100
|
| 93 |
|
|
|
|
| 86 |
|
| 87 |
if st.button("🔍 Predict Risk"):
|
| 88 |
try:
|
| 89 |
+
input_df = pd.DataFrame([[Age,BMI,Menstrual_Irregularity, Testosterone_Level,Antral_Follicle_Count]], columns=['Age','BMI','Menstrual_Irregularity','Testosterone_Level','Antral_Follicle_Count'])
|
|
|
|
| 90 |
prediction = model.predict(input_data)[0]
|
| 91 |
probability = model.predict_proba(input_data)[0][1] * 100
|
| 92 |
|