Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ translation = pipeline("translation", "Shularp/krirk-finetuned-Helsinki-NLP_opus
|
|
| 5 |
|
| 6 |
def translate(text):
|
| 7 |
results = translation(text)
|
| 8 |
-
return
|
| 9 |
|
| 10 |
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
def translate(text):
|
| 7 |
results = translation(text)
|
| 8 |
+
return result[0]["translation_text"]
|
| 9 |
|
| 10 |
|
| 11 |
|