Spaces:
Runtime error
Runtime error
Commit
·
c0b5132
1
Parent(s):
0606b45
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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():
|