Spaces:
Runtime error
Runtime error
Commit
·
90350be
1
Parent(s):
7ba4ac5
Update generator.py
Browse files- generator.py +2 -2
generator.py
CHANGED
@@ -7,7 +7,7 @@ from transformers import (
|
|
7 |
AutoModelForQuestionAnswering as amqa,
|
8 |
AutoTokenizer as att,
|
9 |
# BertTokenizer,
|
10 |
-
|
11 |
# BertForQuestionAnswering,
|
12 |
# AlbertForQuestionAnswering,
|
13 |
# T5Config,
|
@@ -37,7 +37,7 @@ def load_model():
|
|
37 |
hfm = pickle.load(open('hfmodel.sav','rb'))
|
38 |
hft = T5TokenizerFast.from_pretrained("t5-base")
|
39 |
model = pickle.load(open('model.sav','rb'))
|
40 |
-
tok =
|
41 |
# return hfm, hft,tok, model
|
42 |
return hfm, hft,tok, model
|
43 |
|
|
|
7 |
AutoModelForQuestionAnswering as amqa,
|
8 |
AutoTokenizer as att,
|
9 |
# BertTokenizer,
|
10 |
+
AlbertTokenizer,
|
11 |
# BertForQuestionAnswering,
|
12 |
# AlbertForQuestionAnswering,
|
13 |
# T5Config,
|
|
|
37 |
hfm = pickle.load(open('hfmodel.sav','rb'))
|
38 |
hft = T5TokenizerFast.from_pretrained("t5-base")
|
39 |
model = pickle.load(open('model.sav','rb'))
|
40 |
+
tok = AlbertTokenizer.from_pretrained("ahotrod/albert_xxlargev1_squad2_512")
|
41 |
# return hfm, hft,tok, model
|
42 |
return hfm, hft,tok, model
|
43 |
|