Plsek commited on
Commit
ce0005c
·
1 Parent(s): 8120054

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -67,8 +67,10 @@ if uploaded_file is not None:
67
  data = hdul[0].data
68
  wcs = WCS(hdul[0].header)
69
 
 
70
  # Add a slider to change the scale
71
- scale = st.slider("Scale", 1, 4, 1, 1)
 
72
 
73
  plot_image(np.log10(data+1), scale)
74
 
 
67
  data = hdul[0].data
68
  wcs = WCS(hdul[0].header)
69
 
70
+ max_scale = data // 128
71
  # Add a slider to change the scale
72
+ with col1:
73
+ scale = st.slider("Scale", 1, max_scale, 1, 1)
74
 
75
  plot_image(np.log10(data+1), scale)
76