BioGeek commited on
Commit
be33993
ยท
1 Parent(s): e9cdd3a

docs: move Notes section lower

Browse files
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -130,7 +130,7 @@ def load_models_and_knapsack():
130
  if INSTANOVO is not None and RESIDUE_SET is not None and KNAPSACK is None:
131
  # Check if knapsack_cache.zip exists and unzip its contents
132
  knapsack_zip_path = Path("knapsack_cache.zip")
133
- if knapsack_zip_path.exists():
134
  logger.info(f"Found {knapsack_zip_path}. Extracting contents to {KNAPSACK_DIR}...")
135
  try:
136
  with zipfile.ZipFile(knapsack_zip_path, 'r') as zip_ref:
@@ -708,23 +708,11 @@ with gr.Blocks(
708
  )
709
 
710
  gr.Markdown(
711
- f"""
712
  # ๐Ÿš€ _De Novo_ Peptide Sequencing with InstaNovo and InstaNovo+
713
  Upload your mass spectrometry data file (.mgf, .mzml, or .mzxml) and get peptide sequence predictions.
714
  Choose your prediction method and decoding options.
715
 
716
- **Notes:**
717
- * Predictions use version `{TRANSFORMER_MODEL_ID}` for the transformer-based InstaNovo model and version `{DIFFUSION_MODEL_ID}` for the diffusion-based InstaNovo+ model.
718
- * The InstaNovo+ model `{DIFFUSION_MODEL_ID}` is an alpha release.
719
- * **Predction Modes:**
720
- * **InstaNovo with InstaNovo+ refinement** Runs initial prediction with the selected Transformer method (Greedy/Knapsack), then refines using InstaNovo+.
721
- * **InstaNovo Only:** Uses only the Transformer with the selected decoding method.
722
- * **InstaNovo+ Only:** Predicts directly using the Diffusion model (alpha release).
723
- * **Transformer Decoding Methods:**
724
- * **Greedy Search:** use this for optimal performance, has similar performance as Knapsack Beam Search at 5% FDR.
725
- * **Knapsack Beam Search:** use this for the best results and highest peptide recall, but is about 10x slower than Greedy Search.
726
- * Check logs for progress, especially for large files or slower methods.
727
-
728
  This Hugging Face Space is powered by a [ZeroGPU ](https://huggingface.co/docs/hub/en/spaces-zerogpu), which is free but **limited to 5 minutes per day per user**โ€”so if you test with your own files, please use only small files.
729
  """,
730
  elem_classes="feedback"
@@ -803,6 +791,19 @@ with gr.Blocks(
803
  label="Example Usage:",
804
  )
805
 
 
 
 
 
 
 
 
 
 
 
 
 
 
806
  with gr.Accordion("Application Logs", open=True):
807
  log_display = Log(log_file, dark=True, height=300)
808
 
 
130
  if INSTANOVO is not None and RESIDUE_SET is not None and KNAPSACK is None:
131
  # Check if knapsack_cache.zip exists and unzip its contents
132
  knapsack_zip_path = Path("knapsack_cache.zip")
133
+ if knapsack_zip_path.exists() and not KNAPSACK_DIR.exists():
134
  logger.info(f"Found {knapsack_zip_path}. Extracting contents to {KNAPSACK_DIR}...")
135
  try:
136
  with zipfile.ZipFile(knapsack_zip_path, 'r') as zip_ref:
 
708
  )
709
 
710
  gr.Markdown(
711
+ """
712
  # ๐Ÿš€ _De Novo_ Peptide Sequencing with InstaNovo and InstaNovo+
713
  Upload your mass spectrometry data file (.mgf, .mzml, or .mzxml) and get peptide sequence predictions.
714
  Choose your prediction method and decoding options.
715
 
 
 
 
 
 
 
 
 
 
 
 
 
716
  This Hugging Face Space is powered by a [ZeroGPU ](https://huggingface.co/docs/hub/en/spaces-zerogpu), which is free but **limited to 5 minutes per day per user**โ€”so if you test with your own files, please use only small files.
717
  """,
718
  elem_classes="feedback"
 
791
  label="Example Usage:",
792
  )
793
 
794
+ gr.Markdown(f"""**Notes:**
795
+ * Predictions use version `{TRANSFORMER_MODEL_ID}` for the transformer-based InstaNovo model and version `{DIFFUSION_MODEL_ID}` for the diffusion-based InstaNovo+ model.
796
+ * The InstaNovo+ model `{DIFFUSION_MODEL_ID}` is an alpha release.
797
+ * **Predction Modes:**
798
+ * **InstaNovo with InstaNovo+ refinement** Runs initial prediction with the selected Transformer method (Greedy/Knapsack), then refines using InstaNovo+.
799
+ * **InstaNovo Only:** Uses only the Transformer with the selected decoding method.
800
+ * **InstaNovo+ Only:** Predicts directly using the Diffusion model (alpha release).
801
+ * **Transformer Decoding Methods:**
802
+ * **Greedy Search:** use this for optimal performance, has similar performance as Knapsack Beam Search at 5% FDR.
803
+ * **Knapsack Beam Search:** use this for the best results and highest peptide recall, but is about 10x slower than Greedy Search.
804
+ * Check logs for progress, especially for large files or slower methods.
805
+ """)
806
+
807
  with gr.Accordion("Application Logs", open=True):
808
  log_display = Log(log_file, dark=True, height=300)
809