cdleong commited on
Commit
7008ab2
1 Parent(s): ac96dc0

fix progress bar again

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -110,5 +110,6 @@ if __name__ == "__main__":
110
  wav_file = get_path_to_wav_format(uploaded_file, uploaded_files_count>suppress_output_threshold)
111
  result = model.recognize(wav_file, langcode)
112
  results[uploaded_file.name] = result
113
- my_bar.progress(i+1/uploaded_files_count)
 
114
  st.write(results)
 
110
  wav_file = get_path_to_wav_format(uploaded_file, uploaded_files_count>suppress_output_threshold)
111
  result = model.recognize(wav_file, langcode)
112
  results[uploaded_file.name] = result
113
+ files_done = i+1
114
+ my_bar.progress(files_done/uploaded_files_count)
115
  st.write(results)