Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,7 @@ if __name__ == "__main__":
|
|
142 |
st.subheader("Enter the text to be analyzed.")
|
143 |
st.text_input('Enter text', key='widget', on_change=clear_text) #text is stored in this variable
|
144 |
text = st.session_state.text
|
145 |
-
|
146 |
if input_text == "Spanish":
|
147 |
result_pipe = pipe_es(text)
|
148 |
out = get_result_text_es_pt(result_pipe, text, "es")
|
@@ -153,5 +153,4 @@ if __name__ == "__main__":
|
|
153 |
result_pipe = pipe_ca(text)
|
154 |
out = get_result_text_ca(result_pipe, text)
|
155 |
|
156 |
-
st.markdown(out, unsafe_allow_html=True)
|
157 |
-
text = ""
|
|
|
142 |
st.subheader("Enter the text to be analyzed.")
|
143 |
st.text_input('Enter text', key='widget', on_change=clear_text) #text is stored in this variable
|
144 |
text = st.session_state.text
|
145 |
+
print(text)
|
146 |
if input_text == "Spanish":
|
147 |
result_pipe = pipe_es(text)
|
148 |
out = get_result_text_es_pt(result_pipe, text, "es")
|
|
|
153 |
result_pipe = pipe_ca(text)
|
154 |
out = get_result_text_ca(result_pipe, text)
|
155 |
|
156 |
+
st.markdown(out, unsafe_allow_html=True)
|
|