GuysRGithub commited on
Commit
e75d0c1
1 Parent(s): 312b0de
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -9,14 +9,14 @@ from bart import BartForConditionalGeneration
9
  from langdetect import detect
10
  import subprocess
11
 
12
- tokenizer = BartForConditionalGeneration.from_pretrained("GuysTrans/bart-base-re-attention-seq-512")
13
 
14
- vn_tokenizer = BartForConditionalGeneration.from_pretrained("GuysTrans/bart-base-vn-re-attention-vn-tokenizer")
15
 
16
- model = AutoModelForSeq2SeqLM.from_pretrained(
17
  "GuysTrans/bart-base-re-attention-seq-512")
18
 
19
- vn_model = AutoModelForSeq2SeqLM.from_pretrained(
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 = {