added check for eligible models in 3d graph tab
Browse files
app.py
CHANGED
|
@@ -202,13 +202,15 @@ elif active_tab == "3D graph":
|
|
| 202 |
all_models_words = load_all_models_words()
|
| 203 |
|
| 204 |
with st.container():
|
|
|
|
| 205 |
with col1:
|
| 206 |
word = st.multiselect("Enter a word", all_models_words, max_selections=1)
|
| 207 |
if len(word) > 0:
|
| 208 |
word = word[0]
|
|
|
|
| 209 |
|
| 210 |
with col2:
|
| 211 |
-
time_slice = st.selectbox("Time slice",
|
| 212 |
|
| 213 |
n = st.slider("Number of words", 1, 50, 15)
|
| 214 |
|
|
|
|
| 202 |
all_models_words = load_all_models_words()
|
| 203 |
|
| 204 |
with st.container():
|
| 205 |
+
eligible_models = []
|
| 206 |
with col1:
|
| 207 |
word = st.multiselect("Enter a word", all_models_words, max_selections=1)
|
| 208 |
if len(word) > 0:
|
| 209 |
word = word[0]
|
| 210 |
+
eligible_models = models_for_word_dict[word]
|
| 211 |
|
| 212 |
with col2:
|
| 213 |
+
time_slice = st.selectbox("Time slice", eligible_models)
|
| 214 |
|
| 215 |
n = st.slider("Number of words", 1, 50, 15)
|
| 216 |
|