hidevscommunity commited on
Commit
ebd0a5f
·
verified ·
1 Parent(s): 46fae96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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 Price'):
53
  predicted_value = model_prediction(model, features)
54
- if "-" in predicted_value:
55
- st.success("The Car Price is: 0")
56
  else:
57
- st.success(f"The Car Price is: {predicted_value}")
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="Car Price Prediction",
86
  page_icon=":chart_with_upwards_trend:",
87
  )
88
 
89
- st.title("Welcome to our Car Price Prediction App!")
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")