PabloGabrielSch commited on
Commit
ff6d6c2
·
verified ·
1 Parent(s): e51f3e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -202,10 +202,10 @@ with col1:
202
  file_size = len(bytes_data)
203
  print("File size: ",file_size)
204
 
205
- if file.type.split('/')[0] == "image" and file_size > 3000000:
206
  st.session_state.disable_proceed = True
207
  with st.sidebar:
208
- st.info('Sorry, maximum size of image is 3MB', icon="ℹ️")
209
  elif file.type.split('/')[0] == "image":
210
  image = Image.open(file)
211
  st.session_state.disable_proceed = False
@@ -252,7 +252,7 @@ with col2:
252
 
253
 
254
 
255
- if st.button(30*" "+"PROCEED"+" "*30,disabled=st.session_state.disable_proceed) and file is not None:
256
  if st.session_state.get('opt1') == True:
257
  task = st.session_state.opt1_selBox
258
  else:
 
202
  file_size = len(bytes_data)
203
  print("File size: ",file_size)
204
 
205
+ if file.type.split('/')[0] == "image" and file_size > 1550000:
206
  st.session_state.disable_proceed = True
207
  with st.sidebar:
208
+ st.info('Sorry, maximum size of image is 1.5MB', icon="ℹ️")
209
  elif file.type.split('/')[0] == "image":
210
  image = Image.open(file)
211
  st.session_state.disable_proceed = False
 
252
 
253
 
254
 
255
+ if st.button(15*" "+"PROCEED"+" "*15,disabled=st.session_state.disable_proceed) and file is not None:
256
  if st.session_state.get('opt1') == True:
257
  task = st.session_state.opt1_selBox
258
  else: