hidevscommunity commited on
Commit
c0b5132
·
1 Parent(s): 0606b45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -40,7 +40,10 @@ def app_design():
40
  # Make a prediction when the user clicks the "Predict" button
41
  if st.button('Predict Rate'):
42
  predicted_value = model_prediction(model, features)
43
- st.success(f"Clicked on Ad: {predicted_value}")
 
 
 
44
 
45
 
46
  def about_hidevs():
 
40
  # Make a prediction when the user clicks the "Predict" button
41
  if st.button('Predict Rate'):
42
  predicted_value = model_prediction(model, features)
43
+ if predicted_value == '0':
44
+ st.success("Clicked on Ad: NO")
45
+ else:
46
+ st.success("Clicked on Ad: YES")
47
 
48
 
49
  def about_hidevs():