Spaces:
Sleeping
Sleeping
Aksel Lenes
commited on
Commit
•
0be0010
1
Parent(s):
090e359
Don't show spinner for frequently called func
Browse files- hexviz/attention.py +1 -1
hexviz/attention.py
CHANGED
@@ -229,7 +229,7 @@ def unidirectional_avg_filtered(attention, layer, head, threshold):
|
|
229 |
# The ideal would be to pass in the structure directly, not parsing
|
230 |
# Thist twice. If streamlit is upgaded to past 0.17 this can be
|
231 |
# fixed.
|
232 |
-
@st.cache
|
233 |
def get_attention_pairs(
|
234 |
pdb_str: str,
|
235 |
layer: int,
|
|
|
229 |
# The ideal would be to pass in the structure directly, not parsing
|
230 |
# Thist twice. If streamlit is upgaded to past 0.17 this can be
|
231 |
# fixed.
|
232 |
+
@st.cache(show_spinner=False)
|
233 |
def get_attention_pairs(
|
234 |
pdb_str: str,
|
235 |
layer: int,
|