Spaces:
Running on Zero

ras1992 commited on
Commit
dc9dd49
·
verified ·
1 Parent(s): 6f2f0a7

Remove duplicated wordmark under the logo

Browse files
Files changed (2) hide show
  1. README.md +2 -4
  2. app.py +9 -3
README.md CHANGED
@@ -18,11 +18,9 @@ preload_from_hub:
18
  - facebook/esm2_t33_650M_UR50D
19
  ---
20
 
21
- <p align="center">
22
  <img src="docs/assets/logo-banner.png" alt="DeepMutate-3D" width="620">
23
- </p>
24
-
25
- <h1 align="center">DeepMutate-3D</h1>
26
 
27
  <p align="center">
28
  Predict the effect of every possible point mutation in a protein
 
18
  - facebook/esm2_t33_650M_UR50D
19
  ---
20
 
21
+ <h1 align="center">
22
  <img src="docs/assets/logo-banner.png" alt="DeepMutate-3D" width="620">
23
+ </h1>
 
 
24
 
25
  <p align="center">
26
  Predict the effect of every possible point mutation in a protein
app.py CHANGED
@@ -938,15 +938,21 @@ BLOCKS_KWARGS = {} if _LAUNCH_ACCEPTS_THEME else {"theme": _THEME, "css": CSS}
938
 
939
 
940
  with gr.Blocks(title="DeepMutate-3D", **BLOCKS_KWARGS) as demo:
 
 
 
 
 
941
  if LOGO_DATA_URI:
942
  gr.HTML(
943
- '<div style="display:flex;justify-content:center;padding:4px 0 2px">'
944
  f'<img src="{LOGO_DATA_URI}" alt="DeepMutate-3D" '
945
  'style="max-width:420px;width:100%;height:auto;border-radius:10px">'
946
- "</div>"
947
  )
 
 
948
  gr.Markdown(
949
- "# DeepMutate-3D\n"
950
  "**Protein-language-model mutation scanning, painted onto the AlphaFold fold.**\n\n"
951
  "ESM-2 scores every possible point mutation as a log-likelihood ratio against "
952
  "the wildtype residue. Positions the model refuses to change are evolutionarily "
 
938
 
939
 
940
  with gr.Blocks(title="DeepMutate-3D", **BLOCKS_KWARGS) as demo:
941
+ # The logo already carries the wordmark, so it serves as the page heading
942
+ # rather than sitting above a duplicate text title. Wrapping it in an <h1>
943
+ # with alt text keeps the document structure a screen reader expects, while
944
+ # the name appears only once on screen. Without the asset we fall back to a
945
+ # plain text heading so the page is never left untitled.
946
  if LOGO_DATA_URI:
947
  gr.HTML(
948
+ '<h1 style="display:flex;justify-content:center;margin:4px 0 2px">'
949
  f'<img src="{LOGO_DATA_URI}" alt="DeepMutate-3D" '
950
  'style="max-width:420px;width:100%;height:auto;border-radius:10px">'
951
+ "</h1>"
952
  )
953
+ else:
954
+ gr.Markdown("# DeepMutate-3D")
955
  gr.Markdown(
 
956
  "**Protein-language-model mutation scanning, painted onto the AlphaFold fold.**\n\n"
957
  "ESM-2 scores every possible point mutation as a log-likelihood ratio against "
958
  "the wildtype residue. Positions the model refuses to change are evolutionarily "