Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from transformers import
|
2 |
import gradio as grad
|
3 |
mdl_name = "Helsinki-NLP/opus-mt-en-de"
|
4 |
mdl = AutoModelForSeq2SeqLM.from_pretrained(mdl_name)
|
|
|
1 |
+
from transformers import AutoModelForSeq2SeqLM,AutoTokenizer
|
2 |
import gradio as grad
|
3 |
mdl_name = "Helsinki-NLP/opus-mt-en-de"
|
4 |
mdl = AutoModelForSeq2SeqLM.from_pretrained(mdl_name)
|