Update app.py
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ if uploaded_file is not None:
|
|
160 |
col1.subheader("Input image")
|
161 |
col3.subheader("Prediction")
|
162 |
col5.subheader("Decomposed")
|
163 |
-
|
164 |
|
165 |
with col1:
|
166 |
st.markdown("""<style>[data-baseweb="select"] {margin-top: -26px;}</style>""", unsafe_allow_html=True)
|
@@ -173,6 +173,7 @@ if uploaded_file is not None:
|
|
173 |
|
174 |
# Threshold slider
|
175 |
with col4:
|
|
|
176 |
# st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
|
177 |
threshold = st.slider("Threshold", 0.0, 1.0, 0.0, 0.05) #, label_visibility="hidden")
|
178 |
|
@@ -200,7 +201,8 @@ if uploaded_file is not None:
|
|
200 |
y_pred_th = np.where(y_pred > threshold, y_pred, 0)
|
201 |
|
202 |
plot_prediction(y_pred_th)
|
203 |
-
|
|
|
204 |
if decompose or download:
|
205 |
download.disabled = False
|
206 |
|
|
|
160 |
col1.subheader("Input image")
|
161 |
col3.subheader("Prediction")
|
162 |
col5.subheader("Decomposed")
|
163 |
+
col6.subheader("")
|
164 |
|
165 |
with col1:
|
166 |
st.markdown("""<style>[data-baseweb="select"] {margin-top: -26px;}</style>""", unsafe_allow_html=True)
|
|
|
173 |
|
174 |
# Threshold slider
|
175 |
with col4:
|
176 |
+
st.markdown("")
|
177 |
# st.markdown("""<style>[data-baseweb="select"] {margin-top: -36px;}</style>""", unsafe_allow_html=True)
|
178 |
threshold = st.slider("Threshold", 0.0, 1.0, 0.0, 0.05) #, label_visibility="hidden")
|
179 |
|
|
|
201 |
y_pred_th = np.where(y_pred > threshold, y_pred, 0)
|
202 |
|
203 |
plot_prediction(y_pred_th)
|
204 |
+
|
205 |
+
print(type(download))
|
206 |
if decompose or download:
|
207 |
download.disabled = False
|
208 |
|