Spaces:
Runtime error
Runtime error
Pablo Ojea Lopez
commited on
Commit
·
fc910dc
1
Parent(s):
eb4070a
Prueba_03
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
6 |
def translate(name):
|
7 |
|
8 |
trans = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es", tokenizer="Helsinki-NLP/opus-mt-en-es")
|
9 |
-
return trans(name)[0]["translation_text"]
|
10 |
|
11 |
# print (translate(sample_text))
|
12 |
|
|
|
6 |
def translate(name):
|
7 |
|
8 |
trans = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es", tokenizer="Helsinki-NLP/opus-mt-en-es")
|
9 |
+
return trans(name)#[0]["translation_text"]
|
10 |
|
11 |
# print (translate(sample_text))
|
12 |
|