pamunarr commited on
Commit
d45b42a
1 Parent(s): 05c0821

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,4 +5,4 @@ repo_id = "pamunarr/mbart-traduccion"
5
 
6
  traductor = pipeline('text2text-generation', model=repo_id)
7
 
8
- gr.Interface(fn=lambda frase : traductor[0]["generated_text"], inputs="text", outputs="text").launch(share=False)
 
5
 
6
  traductor = pipeline('text2text-generation', model=repo_id)
7
 
8
+ gr.Interface(fn=lambda frase : traductor(frase)[0]["generated_text"], inputs="text", outputs="text").launch(share=False)