Update app.py
Browse files
app.py
CHANGED
|
@@ -17,10 +17,14 @@ def process_text(input_text):
|
|
| 17 |
- Evitar la jerga.
|
| 18 |
- Seguir el orden sujeto, verbo y predicado.
|
| 19 |
- Utilizar una estructura l贸gica, organizando la informaci贸n de manera clara y coherente.
|
| 20 |
-
Eval煤a la calidad del lenguaje de este texto y sugiere las correcciones oportunas.
|
|
|
|
|
|
|
| 21 |
|
| 22 |
###TEXTO CORREGIDO###
|
| 23 |
|
|
|
|
|
|
|
| 24 |
###EXPLICACI脫N###
|
| 25 |
|
| 26 |
|
|
@@ -51,5 +55,5 @@ user_input = st.text_input('Pega tu texto:', st.session_state["user_input"])
|
|
| 51 |
# Create a button to submit the input
|
| 52 |
if st.button("Enviar"):
|
| 53 |
processed_output = process_text(user_input)
|
| 54 |
-
st.write('
|
| 55 |
st.session_state["user_input"] = "" # Clear the input field after processing
|
|
|
|
| 17 |
- Evitar la jerga.
|
| 18 |
- Seguir el orden sujeto, verbo y predicado.
|
| 19 |
- Utilizar una estructura l贸gica, organizando la informaci贸n de manera clara y coherente.
|
| 20 |
+
Eval煤a la calidad del lenguaje de este texto y sugiere las correcciones oportunas.
|
| 21 |
+
Muestra siempre primero el texto corregido y a continuaci贸n las explicaciones, utilizando el siguiente lenguaje de marcado:
|
| 22 |
+
|
| 23 |
|
| 24 |
###TEXTO CORREGIDO###
|
| 25 |
|
| 26 |
+
|
| 27 |
+
|
| 28 |
###EXPLICACI脫N###
|
| 29 |
|
| 30 |
|
|
|
|
| 55 |
# Create a button to submit the input
|
| 56 |
if st.button("Enviar"):
|
| 57 |
processed_output = process_text(user_input)
|
| 58 |
+
st.write('Aqu铆 est谩 el texto corregido:\n', processed_output)
|
| 59 |
st.session_state["user_input"] = "" # Clear the input field after processing
|