Mark7549 commited on
Commit
8df3615
·
1 Parent(s): aa5c198

added caching for dictionary tab

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -165,14 +165,14 @@ elif active_tab == "3D graph":
165
  elif active_tab == "Dictionary":
166
 
167
  with st.container():
168
- all_lemmas = load_compressed_word_list('all_lemmas.pkl.gz')
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_lemmas,
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
  )