drkareemkamal commited on
Commit
31d6d7b
·
verified ·
1 Parent(s): 4c2f54a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -98,5 +98,9 @@ if st.button("Submit"):
98
  prediction = model.predict(df_encoded_array)
99
 
100
  st.write(f"SpaceX Stage 1 Predictor will be : {classes[prediction[0]]}")
 
 
 
 
101
 
102
 
 
98
  prediction = model.predict(df_encoded_array)
99
 
100
  st.write(f"SpaceX Stage 1 Predictor will be : {classes[prediction[0]]}")
101
+ if prediction[0] == 1 :
102
+ st.image('success.gif')
103
+ elif prediction[0] == 0 :
104
+ st.image('failed.gif')
105
 
106