Plsek commited on
Commit
e3ab055
·
1 Parent(s): 9219e24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -181,7 +181,7 @@ if uploaded_file is not None:
181
  st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
182
  threshold = st.slider("", 0.0, 1.0, 0.0, 0.05, label_visibility="hidden")
183
 
184
- if detect:
185
  y_pred, wcs = cut_n_predict(data, wcs, scale)
186
 
187
  # np.save("pred.npy", y_pred)
 
181
  st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
182
  threshold = st.slider("", 0.0, 1.0, 0.0, 0.05, label_visibility="hidden")
183
 
184
+ if detect or threshold:
185
  y_pred, wcs = cut_n_predict(data, wcs, scale)
186
 
187
  # np.save("pred.npy", y_pred)