aksell commited on
Commit
c621eec
1 Parent(s): eb9ae1f

Hide min attention slider in expander

Browse files

People love a slider. But this is not really the most interesting
first thing to play with, as for most higher attention thresholds
you'll see very few attention pairs.

Files changed (1) hide show
  1. hexviz/app.py +3 -1
hexviz/app.py CHANGED
@@ -33,7 +33,9 @@ with right:
33
  head_one = st.number_input("Head", value=1, min_value=1, max_value=selected_model.heads)
34
  head = head_one - 1
35
 
36
- min_attn = st.slider("Minimum attention", min_value=0.0, max_value=0.4, value=0.1)
 
 
37
 
38
  attention_pairs = get_attention_pairs(pdb_id, layer, head, min_attn, model_type=selected_model.name)
39
 
 
33
  head_one = st.number_input("Head", value=1, min_value=1, max_value=selected_model.heads)
34
  head = head_one - 1
35
 
36
+
37
+ with st.expander("Configue parameters", expanded=False):
38
+ min_attn = st.slider("Minimum attention", min_value=0.0, max_value=0.4, value=0.1)
39
 
40
  attention_pairs = get_attention_pairs(pdb_id, layer, head, min_attn, model_type=selected_model.name)
41