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