Spaces:
Sleeping
Sleeping
Update cancer.py
Browse files
cancer.py
CHANGED
|
@@ -93,7 +93,7 @@ with col2:
|
|
| 93 |
input_data = [[age, tumor_size, tumor_grade, symptoms_severity, smoking_history,
|
| 94 |
alcohol_consumption, exercise_frequency, gender, family_history]]
|
| 95 |
|
| 96 |
-
|
| 97 |
if 'trained_model' in st.session_state:
|
| 98 |
model = st.session_state['trained_model']
|
| 99 |
x_train = st.session_state['x_train']
|
|
|
|
| 93 |
input_data = [[age, tumor_size, tumor_grade, symptoms_severity, smoking_history,
|
| 94 |
alcohol_consumption, exercise_frequency, gender, family_history]]
|
| 95 |
|
| 96 |
+
if st.button("Predict Cancer Presence"):
|
| 97 |
if 'trained_model' in st.session_state:
|
| 98 |
model = st.session_state['trained_model']
|
| 99 |
x_train = st.session_state['x_train']
|