Update modules/ui.py
Browse files- modules/ui.py +3 -3
modules/ui.py
CHANGED
|
@@ -175,10 +175,10 @@ def display_text_analysis_interface(nlp_models, lang_code):
|
|
| 175 |
)
|
| 176 |
st.session_state.input_text = sentence_input
|
| 177 |
|
| 178 |
-
sentence_input = st.text_area(t['input_label'], height=150, placeholder=t['input_placeholder'], value=st.session_state.input_text)
|
| 179 |
-
st.session_state.input_text = sentence_input
|
| 180 |
|
| 181 |
-
if st.button(t['analyze_button']):
|
| 182 |
if sentence_input:
|
| 183 |
doc = nlp_models[lang_code](sentence_input)
|
| 184 |
|
|
|
|
| 175 |
)
|
| 176 |
st.session_state.input_text = sentence_input
|
| 177 |
|
| 178 |
+
# sentence_input = st.text_area(t['input_label'], height=150, placeholder=t['input_placeholder'], value=st.session_state.input_text)
|
| 179 |
+
# st.session_state.input_text = sentence_input
|
| 180 |
|
| 181 |
+
if st.button(t['analyze_button'], key=f"analyze_button_{lang_code}"):
|
| 182 |
if sentence_input:
|
| 183 |
doc = nlp_models[lang_code](sentence_input)
|
| 184 |
|