Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def translate(text):
|
|
15 |
model = f"Helsinki-NLP/opus-mt-vi-en"
|
16 |
pipe = pipeline("translation", model=model)
|
17 |
translation = pipe(text)
|
18 |
-
return translation[0]['translation_text']
|
19 |
|
20 |
def greet(prompt):
|
21 |
text = translate(prompt)
|
|
|
15 |
model = f"Helsinki-NLP/opus-mt-vi-en"
|
16 |
pipe = pipeline("translation", model=model)
|
17 |
translation = pipe(text)
|
18 |
+
return translation[0]['translation_text']
|
19 |
|
20 |
def greet(prompt):
|
21 |
text = translate(prompt)
|