Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,12 +49,12 @@ def app_design():
|
|
| 49 |
model = load_model()
|
| 50 |
|
| 51 |
# Make a prediction when the user clicks the "Predict" button
|
| 52 |
-
if st.button('Predict
|
| 53 |
predicted_value = model_prediction(model, features)
|
| 54 |
-
if
|
| 55 |
-
st.success("The
|
| 56 |
else:
|
| 57 |
-
st.success(
|
| 58 |
|
| 59 |
|
| 60 |
def about_hidevs():
|
|
@@ -82,11 +82,11 @@ def main():
|
|
| 82 |
|
| 83 |
# Set the app title and add your website name and logo
|
| 84 |
st.set_page_config(
|
| 85 |
-
page_title="
|
| 86 |
page_icon=":chart_with_upwards_trend:",
|
| 87 |
)
|
| 88 |
|
| 89 |
-
st.title("Welcome to our
|
| 90 |
|
| 91 |
app_design()
|
| 92 |
st.header("About HiDevs Community")
|
|
|
|
| 49 |
model = load_model()
|
| 50 |
|
| 51 |
# Make a prediction when the user clicks the "Predict" button
|
| 52 |
+
if st.button('Predict Insurance'):
|
| 53 |
predicted_value = model_prediction(model, features)
|
| 54 |
+
if predicted_value==1:
|
| 55 |
+
st.success("The Travel Insurance is taken by person")
|
| 56 |
else:
|
| 57 |
+
st.success("The Travel Insurance is not taken by person")
|
| 58 |
|
| 59 |
|
| 60 |
def about_hidevs():
|
|
|
|
| 82 |
|
| 83 |
# Set the app title and add your website name and logo
|
| 84 |
st.set_page_config(
|
| 85 |
+
page_title="Insurance Prediction",
|
| 86 |
page_icon=":chart_with_upwards_trend:",
|
| 87 |
)
|
| 88 |
|
| 89 |
+
st.title("Welcome to our Insurance Prediction App!")
|
| 90 |
|
| 91 |
app_design()
|
| 92 |
st.header("About HiDevs Community")
|