Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -662,29 +662,29 @@ with gr.Blocks() as interface:
|
|
662 |
gr.update(visible=True), # reset_button
|
663 |
gr.update(visible=False), # raw_text
|
664 |
gr.update(visible=False), # file_upload
|
665 |
-
gr.update(value=processed_info, visible=
|
666 |
gr.update(visible=True) # NPS modal
|
667 |
)
|
668 |
return
|
669 |
|
670 |
if result:
|
671 |
all_rows.extend(result)
|
672 |
-
|
673 |
-
log_lines.append(f"✅ Processed {
|
674 |
|
675 |
yield (
|
676 |
make_html_table(all_rows),
|
677 |
gr.update(visible=True), # results_group
|
678 |
gr.update(value=output_file_path, visible=bool(output_file_path)), # download_file
|
679 |
gr.update(value=usage_text, visible=True), # usage_display
|
680 |
-
f"⏳ Processed {
|
681 |
"\n".join(log_lines),
|
682 |
gr.update(visible=False), # run_button
|
683 |
gr.update(visible=True), # stop_button
|
684 |
gr.update(visible=True), # reset_button
|
685 |
gr.update(visible=False), # raw_text
|
686 |
gr.update(visible=False), # file_upload
|
687 |
-
gr.update(value=
|
688 |
gr.update(visible=False) # NPS modal
|
689 |
)
|
690 |
|
@@ -920,7 +920,7 @@ with gr.Blocks() as interface:
|
|
920 |
gr.update(visible=True), # reset_button
|
921 |
gr.update(visible=False), # raw_text
|
922 |
gr.update(visible=False), # file_upload
|
923 |
-
gr.update(value=
|
924 |
gr.update(visible=True) # NPS modal now visible
|
925 |
)
|
926 |
|
|
|
662 |
gr.update(visible=True), # reset_button
|
663 |
gr.update(visible=False), # raw_text
|
664 |
gr.update(visible=False), # file_upload
|
665 |
+
gr.update(value=processed_info, visible=True),
|
666 |
gr.update(visible=True) # NPS modal
|
667 |
)
|
668 |
return
|
669 |
|
670 |
if result:
|
671 |
all_rows.extend(result)
|
672 |
+
processed_accessions += 1
|
673 |
+
log_lines.append(f"✅ Processed {processed_accessions}/{total}")
|
674 |
|
675 |
yield (
|
676 |
make_html_table(all_rows),
|
677 |
gr.update(visible=True), # results_group
|
678 |
gr.update(value=output_file_path, visible=bool(output_file_path)), # download_file
|
679 |
gr.update(value=usage_text, visible=True), # usage_display
|
680 |
+
f"⏳ Processed {processed_accessions}/{total}",
|
681 |
"\n".join(log_lines),
|
682 |
gr.update(visible=False), # run_button
|
683 |
gr.update(visible=True), # stop_button
|
684 |
gr.update(visible=True), # reset_button
|
685 |
gr.update(visible=False), # raw_text
|
686 |
gr.update(visible=False), # file_upload
|
687 |
+
gr.update(value=processed_info, visible=True), # processed_info
|
688 |
gr.update(visible=False) # NPS modal
|
689 |
)
|
690 |
|
|
|
920 |
gr.update(visible=True), # reset_button
|
921 |
gr.update(visible=False), # raw_text
|
922 |
gr.update(visible=False), # file_upload
|
923 |
+
gr.update(value=processed_info, visible=True), # processed_info
|
924 |
gr.update(visible=True) # NPS modal now visible
|
925 |
)
|
926 |
|