Spaces:
Sleeping
Sleeping
added second progress bar for processing
Browse files
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 |
-
|
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]:
|