Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ if uploaded_file is not None:
|
|
71 |
|
72 |
# Add a slider to change the scale
|
73 |
with col1:
|
74 |
-
max_scale = int(data // 128)
|
75 |
scale = st.slider("Scale", 1, max_scale, 1, 1)
|
76 |
|
77 |
plot_image(np.log10(data+1), scale)
|
|
|
71 |
|
72 |
# Add a slider to change the scale
|
73 |
with col1:
|
74 |
+
max_scale = int(data.shape[0] // 128)
|
75 |
scale = st.slider("Scale", 1, max_scale, 1, 1)
|
76 |
|
77 |
plot_image(np.log10(data+1), scale)
|