Spaces:
Runtime error
Runtime error
Commit
·
528b600
1
Parent(s):
a44c97d
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def app_design():
|
|
| 42 |
# Make a prediction when the user clicks the "Predict" button
|
| 43 |
if st.button('Predict Price'):
|
| 44 |
predicted_value = model_prediction(model, features)
|
| 45 |
-
if
|
| 46 |
predicted_value = 0
|
| 47 |
st.success(f"The Electricity Price is: {predicted_value}")
|
| 48 |
|
|
|
|
| 42 |
# Make a prediction when the user clicks the "Predict" button
|
| 43 |
if st.button('Predict Price'):
|
| 44 |
predicted_value = model_prediction(model, features)
|
| 45 |
+
if float(predicted_value[1:len(predicted_value)-4])<=0:
|
| 46 |
predicted_value = 0
|
| 47 |
st.success(f"The Electricity Price is: {predicted_value}")
|
| 48 |
|