schlenker commited on
Commit
e540407
·
1 Parent(s): d1b4160

Bug fixes WN relations

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -220,17 +220,17 @@ if st.session_state.actions[-1] == 'cue':
220
  word_count = st.session_state.counters["word_count"]
221
  write_bot(f'The next word starts with {st.session_state.results["results"][word_count][:letter_count]}', remember=False)
222
 
223
- elif cues_buttons['Synonyms']:
224
- write_bot(f'Here are synonyms for the current word: {avail_cues["Synonyms"]}', remember=False)
225
 
226
- elif cues_buttons['Hypernyms']:
227
- write_bot(f'Here are hypernyms for the current word: {avail_cues["Hypernyms"]}', remember=False)
228
 
229
- elif cues_buttons['Hyponyms']:
230
- write_bot(f'Here are hyponyms for the current word: {avail_cues["Hyponyms"]}', remember=False)
231
 
232
- elif cues_buttons['Examples']:
233
- write_bot(f'Here are example contexts for the current word: {avail_cues["Examples"]}', remember=False)
234
 
235
  elif b3:
236
  write_bot(f"Here are all my guesses about your word: {st.session_state.results['results_print']}")
 
220
  word_count = st.session_state.counters["word_count"]
221
  write_bot(f'The next word starts with {st.session_state.results["results"][word_count][:letter_count]}', remember=False)
222
 
223
+ elif "Synonyms" in cues_buttons and cues_buttons['Synonyms']:
224
+ write_bot(f'Here are synonyms for the current word: {", ".join(avail_cues["Synonyms"])}', remember=False)
225
 
226
+ elif "Hypernyms" in cues_buttons and cues_buttons['Hypernyms']:
227
+ write_bot(f'Here are hypernyms for the current word: {", ".join(avail_cues["Hypernyms"])}', remember=False)
228
 
229
+ elif "Hyponyms" in cues_buttons and cues_buttons['Hyponyms']:
230
+ write_bot(f'Here are hyponyms for the current word: {", ".join(avail_cues["Hyponyms"])}', remember=False)
231
 
232
+ elif "Examples" in cues_buttons and cues_buttons['Examples']:
233
+ write_bot(f'Here are example contexts for the current word: {", ".join(avail_cues["Examples"])}', remember=False)
234
 
235
  elif b3:
236
  write_bot(f"Here are all my guesses about your word: {st.session_state.results['results_print']}")