zmbfeng commited on
Commit
a918060
·
1 Parent(s): 5aa1276

added second progress bar for processing

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -129,8 +129,11 @@ if 'paragraph_sentence_encodings' in st.session_state:
129
  paragraph_scores = []
130
  sentence_scores = []
131
  sentence_encoding = []
132
- for paragraph_sentence_encoding in st.session_state.paragraph_sentence_encodings:
133
-
 
 
 
134
  best_similarity = -1
135
  sentence_similarities = []
136
  for sentence_encoding in paragraph_sentence_encoding[1]:
 
129
  paragraph_scores = []
130
  sentence_scores = []
131
  sentence_encoding = []
132
+ total_count=len(st.session_state.paragraph_sentence_encodings)
133
+ processing_progress_bar = st.progress(0)
134
+ for index,paragraph_sentence_encoding in enumerate(st.session_state.paragraph_sentence_encodings):
135
+ progress_percentage = index / (total_count- 1)
136
+ processing_progress_bar.progress(progress_percentage)
137
  best_similarity = -1
138
  sentence_similarities = []
139
  for sentence_encoding in paragraph_sentence_encoding[1]: