Update app.py
Browse files
app.py
CHANGED
@@ -249,7 +249,7 @@ with col5: decompose = st.button('Decompose', key="decompose")
|
|
249 |
# Make two columns for plots
|
250 |
_, colA, colB, colC, _ = st.columns([bordersize,1,1,1,bordersize])
|
251 |
|
252 |
-
if
|
253 |
# NORMALIZE IMAGE
|
254 |
MIN = np.min(np.where(data == 0, 1, data))
|
255 |
if MIN < 1: data = data / MIN
|
|
|
249 |
# Make two columns for plots
|
250 |
_, colA, colB, colC, _ = st.columns([bordersize,1,1,1,bordersize])
|
251 |
|
252 |
+
if uploaded_file is not None:
|
253 |
# NORMALIZE IMAGE
|
254 |
MIN = np.min(np.where(data == 0, 1, data))
|
255 |
if MIN < 1: data = data / MIN
|