Plsek commited on
Commit
beb9ff5
·
1 Parent(s): c79b72c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 data is not np.zeros((128,128)):
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