Plsek commited on
Commit
502fcd6
·
1 Parent(s): 1bbf58e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -226,7 +226,7 @@ with col1:
226
  scale = int(scale.split("x")[0]) // 128
227
 
228
  # Detect button
229
- with col3: detect = st.button('Detect', key="detect")
230
 
231
  # Threshold slider
232
  with col4:
@@ -235,7 +235,7 @@ with col4:
235
  threshold = st.slider("Threshold", min_value=0.0, max_value=1.0, step=0.05, key="threshold") #, label_visibility="hidden")
236
 
237
  # Decompose button
238
- with col5: decompose = st.button('Decompose', key="decompose")
239
 
240
  # Make two columns for plots
241
  _, colA, colB, colC, _ = st.columns([bordersize,1,1,1,bordersize])
@@ -269,6 +269,7 @@ if uploaded_file is not None:
269
  res = f.read()
270
 
271
  download = st.download_button(label="Download", data=res, key="download",
272
- file_name=f'{fname}_{int(scale*128)}.zip',
 
273
  # disabled=st.session_state.get("disabled", True),
274
  mime="application/octet-stream")
 
226
  scale = int(scale.split("x")[0]) // 128
227
 
228
  # Detect button
229
+ with col3: detect = st.button('Detect', key="detect", use_container_width=False)
230
 
231
  # Threshold slider
232
  with col4:
 
235
  threshold = st.slider("Threshold", min_value=0.0, max_value=1.0, step=0.05, key="threshold") #, label_visibility="hidden")
236
 
237
  # Decompose button
238
+ with col5: decompose = st.button('Decompose', key="decompose", use_container_width=False)
239
 
240
  # Make two columns for plots
241
  _, colA, colB, colC, _ = st.columns([bordersize,1,1,1,bordersize])
 
269
  res = f.read()
270
 
271
  download = st.download_button(label="Download", data=res, key="download",
272
+ file_name=f'{fname}_{int(scale*128)}.zip',
273
+ use_container_width=False,
274
  # disabled=st.session_state.get("disabled", True),
275
  mime="application/octet-stream")