Spaces:
Sleeping
Sleeping
remove while for progress
Browse files
app.py
CHANGED
@@ -356,10 +356,8 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
|
|
356 |
|
357 |
else:
|
358 |
tabs = [False, True]
|
359 |
-
|
360 |
-
|
361 |
-
test_sentences = rq_mgr._getSavedSentences(bias_spec, progress, use_paper_sentences)
|
362 |
-
progress(1, desc="Done retrieving sentences.")
|
363 |
|
364 |
#err_update, _, test_sentences = generateSentences(gr1, gr2, att1, att2, progress)
|
365 |
print(f"Type: {type(test_sentences)}")
|
|
|
356 |
|
357 |
else:
|
358 |
tabs = [False, True]
|
359 |
+
progress(0, desc="Fetching saved sentences...")
|
360 |
+
test_sentences = rq_mgr._getSavedSentences(bias_spec, progress, use_paper_sentences)
|
|
|
|
|
361 |
|
362 |
#err_update, _, test_sentences = generateSentences(gr1, gr2, att1, att2, progress)
|
363 |
print(f"Type: {type(test_sentences)}")
|