Update app.py
Browse files
app.py
CHANGED
|
@@ -119,11 +119,15 @@ def prediction(df):
|
|
| 119 |
#predicition = []
|
| 120 |
#for i in list(y_pred):
|
| 121 |
if y_pred ==0:
|
| 122 |
-
|
| 123 |
else:
|
| 124 |
-
|
| 125 |
#X_test['Actual_time_to_repair'] = y_test
|
| 126 |
#X_test['Predicted_time_to_repair'] = predicition
|
| 127 |
# X_test.to_csv(r'/content/drive/MyDrive/Colab Notebooks/HAL/rogue_test_data.csv')
|
| 128 |
#print(X_test.head())
|
| 129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
#predicition = []
|
| 120 |
#for i in list(y_pred):
|
| 121 |
if y_pred ==0:
|
| 122 |
+
return 'Rouge Component is Good'
|
| 123 |
else:
|
| 124 |
+
return 'Rouge Component is not good'
|
| 125 |
#X_test['Actual_time_to_repair'] = y_test
|
| 126 |
#X_test['Predicted_time_to_repair'] = predicition
|
| 127 |
# X_test.to_csv(r'/content/drive/MyDrive/Colab Notebooks/HAL/rogue_test_data.csv')
|
| 128 |
#print(X_test.head())
|
| 129 |
+
|
| 130 |
+
y_pred = prediction(user_data)
|
| 131 |
+
|
| 132 |
+
if st.button("Predict"):
|
| 133 |
+
st.subheader(y_pred)
|