Plsek commited on
Commit
c1d5fba
·
1 Parent(s): d0ce4b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -203,7 +203,8 @@ if uploaded_file is not None:
203
  image = np.log10(data+1)
204
  plot_image(image, scale)
205
 
206
- if detect or threshold:
 
207
  y_pred, wcs = cut_n_predict(data, wcs, scale)
208
 
209
  y_pred_th = np.where(y_pred > threshold, y_pred, 0)
 
203
  image = np.log10(data+1)
204
  plot_image(image, scale)
205
 
206
+ # if detect or threshold:
207
+ if st.session_state.get("detect", True)
208
  y_pred, wcs = cut_n_predict(data, wcs, scale)
209
 
210
  y_pred_th = np.where(y_pred > threshold, y_pred, 0)