Plsek commited on
Commit
7003431
·
1 Parent(s): bf62a13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -155,12 +155,10 @@ if uploaded_file is not None:
155
 
156
  np.save("pred.npy", y_pred)
157
 
158
- if bool(threshold):
159
- y_pred = np.load("pred.npy")
160
 
161
- pred = np.where(y_pred > threshold, y_pred, 0)
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)