AIdeaText commited on
Commit
19cdda1
·
verified ·
1 Parent(s): 5f1328a

Update modules/ui.py

Browse files
Files changed (1) hide show
  1. modules/ui.py +3 -2
modules/ui.py CHANGED
@@ -254,8 +254,9 @@ def display_morphosyntax_analysis_interface(nlp_models, lang_code):
254
 
255
  if st.button(t['analyze_button'], key=f"analyze_button_{lang_code}"):
256
  if sentence_input:
257
- current_input = st.session_state[input.key]
258
- doc = nlp_models[lang_code](sentence_input)
 
259
 
260
  word_colors = get_repeated_words_colors(doc)
261
 
 
254
 
255
  if st.button(t['analyze_button'], key=f"analyze_button_{lang_code}"):
256
  if sentence_input:
257
+ current_input = st.session_state[input_key]
258
+ if current_input:
259
+ doc = nlp_models[lang_code](sentence_input)
260
 
261
  word_colors = get_repeated_words_colors(doc)
262