George Tsang
commited on
Commit
·
e3b1dc1
1
Parent(s):
5918aab
add AutoTokenizer to import
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
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)
|
|
|
1 |
+
from transformers import AutoTokenizer, pipeline
|
2 |
import gradio as grad
|
3 |
mdl_name = "Helsinki-NLP/opus-mt-en-de"
|
4 |
opus_translator = pipeline("translation", model=mdl_name)
|