Spaces:
Sleeping
Sleeping
Add report a bug and get help link + about us text
Browse files
hexviz/pages/🗺️Identify_Interesting_Heads.py
CHANGED
@@ -3,9 +3,9 @@ import streamlit as st
|
|
3 |
from hexviz.attention import get_attention, get_sequence, get_structure
|
4 |
from hexviz.models import Model, ModelType
|
5 |
from hexviz.plot import plot_tiled_heatmap
|
6 |
-
from hexviz.view import select_model, select_pdb
|
7 |
|
8 |
-
st.set_page_config(layout="wide")
|
9 |
st.subheader("Find interesting heads and layers")
|
10 |
|
11 |
|
|
|
3 |
from hexviz.attention import get_attention, get_sequence, get_structure
|
4 |
from hexviz.models import Model, ModelType
|
5 |
from hexviz.plot import plot_tiled_heatmap
|
6 |
+
from hexviz.view import menu_items, select_model, select_pdb
|
7 |
|
8 |
+
st.set_page_config(layout="wide", menu_items=menu_items)
|
9 |
st.subheader("Find interesting heads and layers")
|
10 |
|
11 |
|
hexviz/view.py
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
import streamlit as st
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
def get_selecte_model_index(models):
|
5 |
selected_model_name = st.session_state.get("selected_model_name", None)
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
menu_items = {
|
4 |
+
"Get Help": "https://huggingface.co/spaces/aksell/hexviz/discussions/new",
|
5 |
+
"Report a bug": "https://huggingface.co/spaces/aksell/hexviz/discussions/new",
|
6 |
+
"About": "Created by [Aksel Lenes](https://github.com/aksell/) from Noelia Ferruz's group at the Institute of Molecular Biology of Barcelona. Read more at https://www.aiproteindesign.com/"
|
7 |
+
}
|
8 |
|
9 |
def get_selecte_model_index(models):
|
10 |
selected_model_name = st.session_state.get("selected_model_name", None)
|
hexviz/🧬Attention_Visualization.py
CHANGED
@@ -6,8 +6,9 @@ from stmol import showmol
|
|
6 |
|
7 |
from hexviz.attention import get_attention_pairs, get_chains, get_structure
|
8 |
from hexviz.models import Model, ModelType
|
9 |
-
from hexviz.view import select_model, select_pdb
|
10 |
|
|
|
11 |
st.title("Attention Visualization on proteins")
|
12 |
|
13 |
|
|
|
6 |
|
7 |
from hexviz.attention import get_attention_pairs, get_chains, get_structure
|
8 |
from hexviz.models import Model, ModelType
|
9 |
+
from hexviz.view import select_model, select_pdb, menu_items
|
10 |
|
11 |
+
st.set_page_config(layout="centered", menu_items=menu_items)
|
12 |
st.title("Attention Visualization on proteins")
|
13 |
|
14 |
|