VyLala commited on
Commit
4a80cd3
·
verified ·
1 Parent(s): 574c21a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -155,6 +155,7 @@ css = """
155
  border-color: white !important;
156
  box-shadow: 0 0 5px white inset;
157
  }
 
158
 
159
  with gr.Blocks() as interface:
160
  # with gr.Tab("CURIOUS ABOUT THIS PRODUCT?"):
@@ -685,7 +686,10 @@ with gr.Blocks() as interface:
685
  warning = f"⚠️ Only processing first {limited_acc} accessions."
686
  else:
687
  warning = f"✅ All {total} accessions will be processed."
688
- processed_info = warning + "\n" +f"Processed accessions: {accessions[0]}...{accessions[-1]}"
 
 
 
689
  ### NEW: Hide inputs, show processed_info at start
690
  yield (
691
  make_html_table(all_rows), # output_table
 
155
  border-color: white !important;
156
  box-shadow: 0 0 5px white inset;
157
  }
158
+ """
159
 
160
  with gr.Blocks() as interface:
161
  # with gr.Tab("CURIOUS ABOUT THIS PRODUCT?"):
 
686
  warning = f"⚠️ Only processing first {limited_acc} accessions."
687
  else:
688
  warning = f"✅ All {total} accessions will be processed."
689
+ if len(accessions) == 1:
690
+ processed_info = warning + "\n" +f"Processed accessions: {accessions[0]}"
691
+ else:
692
+ processed_info = warning + "\n" +f"Processed accessions: {accessions[0]}...{accessions[-1]}"
693
  ### NEW: Hide inputs, show processed_info at start
694
  yield (
695
  make_html_table(all_rows), # output_table