hernanlira commited on
Commit
2d19f05
·
1 Parent(s): a4f1aad

update model

Browse files
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import json
3
  import os
4
- from generate_eban import translate_es_to_mapudungun
5
 
6
  __TITLE: str = "# Traductor Español - Mapudungun"
7
 
 
1
  import gradio as gr
2
  import json
3
  import os
4
+ from generate_translation import translate_es_to_mapudungun
5
 
6
  __TITLE: str = "# Traductor Español - Mapudungun"
7
 
generate_eban.py → generate_translation.py RENAMED
@@ -1,7 +1,7 @@
1
  from transformers import pipeline
2
 
3
  def translate_es_to_mapudungun(text_es):
4
- pipe = pipeline("text2text-generation", model="ebanebssa/es-arn")
5
  translated_text = pipe(text_es)[0]['generated_text']
6
  return translated_text
7
 
 
1
  from transformers import pipeline
2
 
3
  def translate_es_to_mapudungun(text_es):
4
+ pipe = pipeline("text2text-generation", model="inria-chile/translator_es_arn")
5
  translated_text = pipe(text_es)[0]['generated_text']
6
  return translated_text
7