ashourzadeh7
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import torch
|
|
4 |
|
5 |
# this model was loaded from https://hf.co/models
|
6 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
7 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-
|
9 |
|
10 |
|
11 |
LANGS = ["pes_Arab", "ckb_Arab", "eng_Latn"]
|
|
|
4 |
|
5 |
# this model was loaded from https://hf.co/models
|
6 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
7 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-3.3B").to(device)
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-3.3B")
|
9 |
|
10 |
|
11 |
LANGS = ["pes_Arab", "ckb_Arab", "eng_Latn"]
|