Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as grad
|
3 |
-
mdl_name = "Helsinki-NLP/opus-mt-en-
|
4 |
opus_translator = pipeline("translation", model=mdl_name)
|
5 |
def translate(text):
|
6 |
response = opus_translator(text)
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as grad
|
3 |
+
mdl_name = "Helsinki-NLP/opus-mt-en-de"
|
4 |
opus_translator = pipeline("translation", model=mdl_name)
|
5 |
def translate(text):
|
6 |
response = opus_translator(text)
|