Update app.py
Browse files
app.py
CHANGED
@@ -254,7 +254,7 @@ with col5: decompose = st.button('Decompose', key="decompose")
|
|
254 |
# Make two columns for plots
|
255 |
_, colA, colB, colC, _ = st.columns([bordersize,1,1,1,bordersize])
|
256 |
|
257 |
-
if "data"
|
258 |
# NORMALIZE IMAGE
|
259 |
MIN = np.min(np.where(data == 0, 1, data))
|
260 |
if MIN < 1: data = data / MIN
|
|
|
254 |
# Make two columns for plots
|
255 |
_, colA, colB, colC, _ = st.columns([bordersize,1,1,1,bordersize])
|
256 |
|
257 |
+
if "data" in locals():
|
258 |
# NORMALIZE IMAGE
|
259 |
MIN = np.min(np.where(data == 0, 1, data))
|
260 |
if MIN < 1: data = data / MIN
|