nes470 commited on
Commit
73f35c3
verified
1 Parent(s): 25d198b

Update QBModelWrapper.py

Browse files
Files changed (1) hide show
  1. QBModelWrapper.py +23 -23
QBModelWrapper.py CHANGED
@@ -1,23 +1,23 @@
1
- from typing import List
2
- from transformers import PreTrainedModel
3
- from QBModelConfig import QBModelConfig
4
- from qbmodel import QuizBowlModel
5
-
6
- class QBModelWrapper(PreTrainedModel):
7
- config_class= QBModelConfig
8
-
9
- # def __init__(self, config: PretrainedConfig, *inputs, **kwargs):
10
- # super().__init__(config, *inputs, **kwargs)
11
-
12
- # self.model = QuizBowlModel()
13
-
14
-
15
- def __init__(self, config):
16
- super().__init__(config)
17
-
18
- self.model = QuizBowlModel()
19
-
20
-
21
-
22
- def forward(self, question):
23
- return self.model.guess_and_buzz(question)
 
1
+ from typing import List
2
+ from transformers import PreTrainedModel
3
+ from .QBModelConfig import QBModelConfig
4
+ from .qbmodel import QuizBowlModel
5
+
6
+ class QBModelWrapper(PreTrainedModel):
7
+ config_class= QBModelConfig
8
+
9
+ # def __init__(self, config: PretrainedConfig, *inputs, **kwargs):
10
+ # super().__init__(config, *inputs, **kwargs)
11
+
12
+ # self.model = QuizBowlModel()
13
+
14
+
15
+ def __init__(self, config):
16
+ super().__init__(config)
17
+
18
+ self.model = QuizBowlModel()
19
+
20
+
21
+
22
+ def forward(self, question):
23
+ return self.model.guess_and_buzz(question)