Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,7 @@ if uploaded_file is not None:
|
|
| 142 |
with colB:
|
| 143 |
st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
|
| 144 |
threshold = st.slider("", 0.0, 1.0, 0.4, 0.05, label_visibility="hidden")
|
| 145 |
-
plot_prediction(y_pred)
|
| 146 |
|
| 147 |
if detect:
|
| 148 |
data, wcs = cut(data, wcs, scale=scale)
|
|
@@ -156,7 +156,9 @@ if uploaded_file is not None:
|
|
| 156 |
y_pred += pred / 4
|
| 157 |
|
| 158 |
y_pred = np.where(y_pred > threshold, y_pred, 0)
|
| 159 |
-
|
|
|
|
|
|
|
| 160 |
# if decompose:
|
| 161 |
# cavs = decompose_cavity(y_pred, )
|
| 162 |
|
|
|
|
| 142 |
with colB:
|
| 143 |
st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
|
| 144 |
threshold = st.slider("", 0.0, 1.0, 0.4, 0.05, label_visibility="hidden")
|
| 145 |
+
# plot_prediction(y_pred)
|
| 146 |
|
| 147 |
if detect:
|
| 148 |
data, wcs = cut(data, wcs, scale=scale)
|
|
|
|
| 156 |
y_pred += pred / 4
|
| 157 |
|
| 158 |
y_pred = np.where(y_pred > threshold, y_pred, 0)
|
| 159 |
+
|
| 160 |
+
plot_prediction(y_pred)
|
| 161 |
+
|
| 162 |
# if decompose:
|
| 163 |
# cavs = decompose_cavity(y_pred, )
|
| 164 |
|