Daniel Verdu commited on
Commit
4c9d269
1 Parent(s): d6182ee

added progress bar

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -132,7 +132,7 @@ def process_multiple_images(uploaded_files, img_size=800):
132
  img_names_list = []
133
  idx = 1
134
 
135
- for idx, uploaded_file in stqdm(enumerate(uploaded_files, start=1)):
136
  st_title_message.markdown("**Processing image {}/{}. Please wait** ⌛".format(idx,
137
  num_imgs))
138
 
@@ -203,6 +203,7 @@ unsafe_allow_html=True)
203
  st.title("Black and white colorizer")
204
  st.markdown("This app puts color into your black and white pictures")
205
  st_title_message = st.empty()
 
206
  st_file_uploader = st.empty()
207
  st_input_img = st.empty()
208
  st_output_img = st.empty()
 
132
  img_names_list = []
133
  idx = 1
134
 
135
+ for idx, uploaded_file in stqdm(enumerate(uploaded_files, start=1), st_container=st_progress_bar):
136
  st_title_message.markdown("**Processing image {}/{}. Please wait** ⌛".format(idx,
137
  num_imgs))
138
 
 
203
  st.title("Black and white colorizer")
204
  st.markdown("This app puts color into your black and white pictures")
205
  st_title_message = st.empty()
206
+ st_progress_bar = st.empty()
207
  st_file_uploader = st.empty()
208
  st_input_img = st.empty()
209
  st_output_img = st.empty()