Wizmik12 commited on
Commit
c226f5a
1 Parent(s): 0337b58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -4,11 +4,11 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
4
 
5
  # Ejemplos de preguntas
6
  mis_ejemplos = [
7
- ["La cocina de los gallegos es fabulosa."],
8
- ["Los niños juegan a la pelota."],
9
- ["Los científicos son muy listos."],
10
- ["Las enfermeras se esforzaron mucho durante la pandemia."],
11
- ["Los políticos no son del agrado de los ciudadanos."]
12
 
13
  ]
14
 
@@ -77,8 +77,8 @@ def translate_es_inclusivo(exclusive_text):
77
 
78
  # <-- set article variable -->
79
  article = "- **Motivation:** Languages are powerful tools to communicate ideas, but their use is not impartial. The selection of words carries inherent biases and reflects subjective perspectives. In some cases, language is wielded to enforce ideologies, \
80
- th purpose of this app is to automatically translate Spanish phrases into neutral/inclusive phrases, while mantaining grammar correctness and consistency." \
81
- "- **Team Members: ** Gaia Quintana Fleitas (gaiaq), Andrés Martínez Fernández-Salguero (andresmfs), Imanuel Rozenberg (manu_20392), Miguel López (wizmik12), Josué Sauca (josue_sauca). " \
82
  "- **Social Impact:** An inclusive translator holds significant social impact by promoting equity and representation within texts. By rectifying biases ingrained in language and fostering inclusivity, it combats discrimination, amplifies the visibility of marginalized groups, and contributes to the cultivation of a more inclusive and respectful society."
83
 
84
  iface = gr.Interface(
 
4
 
5
  # Ejemplos de preguntas
6
  mis_ejemplos = [
7
+ ["La cocina de los gallegos es fabulosa"],
8
+ ["Los niños juegan a la pelota"],
9
+ ["Los científicos son muy trabajadores"],
10
+ ["Las enfermeras se esforzaron mucho durante la pandemia"],
11
+ ["Los ciudadanos Marcos y Ernesto no están contentos los políticos"]
12
 
13
  ]
14
 
 
77
 
78
  # <-- set article variable -->
79
  article = "- **Motivation:** Languages are powerful tools to communicate ideas, but their use is not impartial. The selection of words carries inherent biases and reflects subjective perspectives. In some cases, language is wielded to enforce ideologies, \
80
+ th purpose of this app is to automatically translate Spanish phrases into neutral/inclusive phrases, while mantaining grammar correctness and consistency.\n" \
81
+ "- **Team Members:** Gaia Quintana Fleitas (gaiaq), Andrés Martínez Fernández-Salguero (andresmfs), Imanuel Rozenberg (manu_20392), Miguel López (wizmik12), Josué Sauca (josue_sauca).\n " \
82
  "- **Social Impact:** An inclusive translator holds significant social impact by promoting equity and representation within texts. By rectifying biases ingrained in language and fostering inclusivity, it combats discrimination, amplifies the visibility of marginalized groups, and contributes to the cultivation of a more inclusive and respectful society."
83
 
84
  iface = gr.Interface(