Spaces:
Sleeping
Sleeping
GuysRGithub
commited on
Commit
•
e75d0c1
1
Parent(s):
312b0de
Update
Browse files
app.py
CHANGED
@@ -9,14 +9,14 @@ from bart import BartForConditionalGeneration
|
|
9 |
from langdetect import detect
|
10 |
import subprocess
|
11 |
|
12 |
-
tokenizer =
|
13 |
|
14 |
-
vn_tokenizer =
|
15 |
|
16 |
-
model =
|
17 |
"GuysTrans/bart-base-re-attention-seq-512")
|
18 |
|
19 |
-
vn_model =
|
20 |
"GuysTrans/bart-base-vn-re-attention-vn-tokenizer")
|
21 |
|
22 |
map_words = {
|
|
|
9 |
from langdetect import detect
|
10 |
import subprocess
|
11 |
|
12 |
+
tokenizer = AutoTokenizer.from_pretrained("GuysTrans/bart-base-re-attention-seq-512")
|
13 |
|
14 |
+
vn_tokenizer = AutoTokenizer.from_pretrained("GuysTrans/bart-base-vn-re-attention-vn-tokenizer")
|
15 |
|
16 |
+
model = BartForConditionalGeneration.from_pretrained(
|
17 |
"GuysTrans/bart-base-re-attention-seq-512")
|
18 |
|
19 |
+
vn_model = BartForConditionalGeneration.from_pretrained(
|
20 |
"GuysTrans/bart-base-vn-re-attention-vn-tokenizer")
|
21 |
|
22 |
map_words = {
|