Update app.py
Browse files
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 |
|