added caching for dictionary tab
Browse files
app.py
CHANGED
|
@@ -165,14 +165,14 @@ elif active_tab == "3D graph":
|
|
| 165 |
elif active_tab == "Dictionary":
|
| 166 |
|
| 167 |
with st.container():
|
| 168 |
-
|
| 169 |
|
| 170 |
# query_word = st.multiselect("Search a word in the LSJ dictionary", all_lemmas, max_selections=1)
|
| 171 |
|
| 172 |
query_tag = st_tags(label = 'Search a word in the LSJ dictionary',
|
| 173 |
text = '',
|
| 174 |
value = [],
|
| 175 |
-
suggestions =
|
| 176 |
maxtags = 1,
|
| 177 |
key = '1'
|
| 178 |
)
|
|
|
|
| 165 |
elif active_tab == "Dictionary":
|
| 166 |
|
| 167 |
with st.container():
|
| 168 |
+
all_models_words = load_all_models_words()
|
| 169 |
|
| 170 |
# query_word = st.multiselect("Search a word in the LSJ dictionary", all_lemmas, max_selections=1)
|
| 171 |
|
| 172 |
query_tag = st_tags(label = 'Search a word in the LSJ dictionary',
|
| 173 |
text = '',
|
| 174 |
value = [],
|
| 175 |
+
suggestions = all_models_words,
|
| 176 |
maxtags = 1,
|
| 177 |
key = '1'
|
| 178 |
)
|