Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ warnings.filterwarnings('ignore')
|
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
-
st.title("Prection of
|
| 23 |
st.sidebar.header('Enter the Components Details here')
|
| 24 |
import pandas as pd
|
| 25 |
import numpy as np
|
|
@@ -97,6 +97,7 @@ def predict_max_number_of_repairs(user_data):
|
|
| 97 |
# return the predicted max number of repairs as output
|
| 98 |
return np.round(predicted_max_number_of_repairs[0])
|
| 99 |
# Function calling
|
| 100 |
-
y_pred = predict_max_number_of_repairs(user_data)
|
| 101 |
-
|
| 102 |
-
|
|
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
+
st.title("Prection of Maximum Number of Repairs")
|
| 23 |
st.sidebar.header('Enter the Components Details here')
|
| 24 |
import pandas as pd
|
| 25 |
import numpy as np
|
|
|
|
| 97 |
# return the predicted max number of repairs as output
|
| 98 |
return np.round(predicted_max_number_of_repairs[0])
|
| 99 |
# Function calling
|
| 100 |
+
y_pred = int(predict_max_number_of_repairs(user_data))
|
| 101 |
+
|
| 102 |
+
if st.button("Predict"):
|
| 103 |
+
st.subheader(f"Maximun Number of Repairs is {y_pred} ")
|