Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
|
3 |
|
4 |
model_name = "Helsinki-NLP/opus-mt-en-de"
|
5 |
|
6 |
-
model =
|
7 |
model_tkn = AutoTokenizer(model_name)
|
8 |
|
9 |
#opus_translation = pipeline("translation", model=model_name)
|
|
|
3 |
|
4 |
model_name = "Helsinki-NLP/opus-mt-en-de"
|
5 |
|
6 |
+
model = AutoModelForSeq2SeqLM_from_pretrained(model_name)
|
7 |
model_tkn = AutoTokenizer(model_name)
|
8 |
|
9 |
#opus_translation = pipeline("translation", model=model_name)
|