loodvanniekerkginkgo commited on
Commit
f523f79
·
1 Parent(s): ba1131a

More cleanup

Browse files
Files changed (2) hide show
  1. about.py +7 -0
  2. app.py +2 -5
about.py CHANGED
@@ -9,6 +9,13 @@ ASSAY_RENAME = {
9
  "Tm2": "Thermostability",
10
  "Titer": "Titer",
11
  }
 
 
 
 
 
 
 
12
  ASSAY_EMOJIS = {
13
  "AC-SINS_pH7.4": "🧲",
14
  "PR_CHO": "🎯",
 
9
  "Tm2": "Thermostability",
10
  "Titer": "Titer",
11
  }
12
+ ASSAY_DESCRIPTION = {
13
+ "AC-SINS_pH7.4": "Self association by AC-SINS at pH 7.4",
14
+ "PR_CHO": "Polyreactivity by bead-based method against CHO SMP and ovalbumin",
15
+ "HIC": "Hydrophobicity by HIC",
16
+ "Tm2": "Thermostability by nanoDSF",
17
+ "Titer": "Titer by Valita",
18
+ }
19
  ASSAY_EMOJIS = {
20
  "AC-SINS_pH7.4": "🧲",
21
  "PR_CHO": "🎯",
app.py CHANGED
@@ -1,14 +1,11 @@
1
- from pathlib import Path
2
- import json
3
  import pandas as pd
4
 
5
  import gradio as gr
6
  from gradio_leaderboard import Leaderboard
7
 
8
  from utils import fetch_hf_results, show_output_box
9
- from about import ASSAY_LIST, ASSAY_RENAME, ASSAY_EMOJIS, submissions_repo, API
10
  from submit import make_submission
11
- from about import ABOUT_TEXT, FAQS
12
 
13
  def format_leaderboard_table(df_results: pd.DataFrame, assay: str | None = None):
14
  # Previous things that were nice in the constellaration leaderboard:
@@ -50,7 +47,7 @@ with gr.Blocks() as demo:
50
  # Procedurally make these 5 tabs
51
  for assay in ASSAY_LIST:
52
  with gr.TabItem(f"{ASSAY_EMOJIS[assay]} {ASSAY_RENAME[assay]}", elem_id=f"abdev-benchmark-tab-table"):
53
- gr.Markdown(f"# {ASSAY_RENAME[assay]} (measured by {assay})")
54
  get_leaderboard_object(df_results=df, assay=assay)
55
 
56
  with gr.TabItem("🚀 Overall", elem_id="abdev-benchmark-tab-table"):
 
 
 
1
  import pandas as pd
2
 
3
  import gradio as gr
4
  from gradio_leaderboard import Leaderboard
5
 
6
  from utils import fetch_hf_results, show_output_box
7
+ from about import ASSAY_LIST, ASSAY_RENAME, ASSAY_EMOJIS, ASSAY_DESCRIPTION, ABOUT_TEXT, FAQS
8
  from submit import make_submission
 
9
 
10
  def format_leaderboard_table(df_results: pd.DataFrame, assay: str | None = None):
11
  # Previous things that were nice in the constellaration leaderboard:
 
47
  # Procedurally make these 5 tabs
48
  for assay in ASSAY_LIST:
49
  with gr.TabItem(f"{ASSAY_EMOJIS[assay]} {ASSAY_RENAME[assay]}", elem_id=f"abdev-benchmark-tab-table"):
50
+ gr.Markdown(f"# {ASSAY_DESCRIPTION[assay]}")
51
  get_leaderboard_object(df_results=df, assay=assay)
52
 
53
  with gr.TabItem("🚀 Overall", elem_id="abdev-benchmark-tab-table"):