Update modules/ui.py
Browse files- 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[
|
| 258 |
-
|
|
|
|
| 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 |
|