Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def main():
|
|
| 48 |
hours_per_week =st.slider("Hours per week",min_value = 1 , max_value=100)
|
| 49 |
native_country =st.selectbox("Native country", options = unique_country)
|
| 50 |
|
| 51 |
-
# clicked==True only when the button is
|
| 52 |
clicked = st.form_submit_button("Predict income")
|
| 53 |
if clicked:
|
| 54 |
result=model.predict(pd.DataFrame({"age": [age],
|
|
|
|
| 48 |
hours_per_week =st.slider("Hours per week",min_value = 1 , max_value=100)
|
| 49 |
native_country =st.selectbox("Native country", options = unique_country)
|
| 50 |
|
| 51 |
+
# clicked==True only when the button is clicke
|
| 52 |
clicked = st.form_submit_button("Predict income")
|
| 53 |
if clicked:
|
| 54 |
result=model.predict(pd.DataFrame({"age": [age],
|