muhammadzain commited on
Commit
1ec58ed
1 Parent(s): 04c576b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -152,7 +152,7 @@ with col2:
152
 
153
 
154
 
155
- if st.button(43*" "+"PROCEED"+" "*43) and file is not None:
156
  if st.session_state.get('opt1') == True:
157
  task = st.session_state.opt1_selBox
158
  else:
@@ -170,10 +170,10 @@ with col2:
170
  st.session_state.disable_download = True
171
 
172
  if st.session_state.disable_download == True:
173
- st.button(36*" "+"DOWNLOAD FILE"+" "*36,disabled=True)
174
  else:
175
  with open('processed_'+file.name, "rb") as download_file:
176
- st.download_button(label=36*" "+"DOWNLOAD FILE"+" "*36, data=download_file,
177
  file_name= 'processed_'+file.name, mime= "image/png",
178
  disabled=st.session_state.disable_download)
179
 
 
152
 
153
 
154
 
155
+ if st.button(23*" "+"PROCEED"+" "*23) and file is not None:
156
  if st.session_state.get('opt1') == True:
157
  task = st.session_state.opt1_selBox
158
  else:
 
170
  st.session_state.disable_download = True
171
 
172
  if st.session_state.disable_download == True:
173
+ st.button(16*" "+"DOWNLOAD FILE"+" "*16,disabled=True)
174
  else:
175
  with open('processed_'+file.name, "rb") as download_file:
176
+ st.download_button(label=16*" "+"DOWNLOAD FILE"+" "*16, data=download_file,
177
  file_name= 'processed_'+file.name, mime= "image/png",
178
  disabled=st.session_state.disable_download)
179