saritha5 commited on
Commit
0e6207c
1 Parent(s): 2258a85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
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
- st.write('Rouge Component is Good')
123
  else:
124
- st.write('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
- prediction(user_data)
 
 
 
 
 
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)