Update app.py
Browse files
app.py
CHANGED
@@ -138,11 +138,6 @@ if uploaded_file is not None:
|
|
138 |
image = np.log10(data+1)
|
139 |
with colA:
|
140 |
plot_image(image, scale)
|
141 |
-
|
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)
|
@@ -155,10 +150,17 @@ if uploaded_file is not None:
|
|
155 |
pred = np.rot90(pred, -j)
|
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 |
|
|
|
138 |
image = np.log10(data+1)
|
139 |
with colA:
|
140 |
plot_image(image, scale)
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
if detect:
|
143 |
data, wcs = cut(data, wcs, scale=scale)
|
|
|
150 |
pred = np.rot90(pred, -j)
|
151 |
y_pred += pred / 4
|
152 |
|
153 |
+
with colB:
|
154 |
+
st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
|
155 |
+
threshold = st.slider("", 0.0, 1.0, 0.4, 0.05, label_visibility="hidden")
|
156 |
+
|
157 |
y_pred = np.where(y_pred > threshold, y_pred, 0)
|
158 |
|
159 |
plot_prediction(y_pred)
|
160 |
|
161 |
+
with colC:
|
162 |
+
st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
|
163 |
+
|
164 |
# if decompose:
|
165 |
# cavs = decompose_cavity(y_pred, )
|
166 |
|