Spaces:
Sleeping
Sleeping
Progress update
Browse files
app.py
CHANGED
@@ -356,8 +356,10 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
|
|
356 |
|
357 |
else:
|
358 |
tabs = [False, True]
|
359 |
-
|
360 |
-
|
|
|
|
|
361 |
|
362 |
#err_update, _, test_sentences = generateSentences(gr1, gr2, att1, att2, progress)
|
363 |
print(f"Type: {type(test_sentences)}")
|
|
|
356 |
|
357 |
else:
|
358 |
tabs = [False, True]
|
359 |
+
with gr.Progress() as progress:
|
360 |
+
progress(0, desc="Fetching saved sentences...")
|
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)}")
|