Update app.py
Browse files
app.py
CHANGED
|
@@ -155,12 +155,10 @@ if uploaded_file is not None:
|
|
| 155 |
|
| 156 |
np.save("pred.npy", y_pred)
|
| 157 |
|
| 158 |
-
|
| 159 |
-
|
| 160 |
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
plot_prediction(pred)
|
| 164 |
|
| 165 |
# with colC:
|
| 166 |
# st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
|
|
|
|
| 155 |
|
| 156 |
np.save("pred.npy", y_pred)
|
| 157 |
|
| 158 |
+
y_pred = np.load("pred.npy")
|
| 159 |
+
y_pred = np.where(y_pred > threshold, y_pred, 0)
|
| 160 |
|
| 161 |
+
plot_prediction(y_pred)
|
|
|
|
|
|
|
| 162 |
|
| 163 |
# with colC:
|
| 164 |
# st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
|