Update model_class.py
Browse files- model_class.py +1 -1
model_class.py
CHANGED
|
@@ -174,7 +174,7 @@ class TicketGPT(
|
|
| 174 |
logits = self.out_head(x) #[2,4,50257]
|
| 175 |
return logits
|
| 176 |
|
| 177 |
-
def predict(self, text, tokenizer, max_length=
|
| 178 |
lookup = {
|
| 179 |
0:"Hardware",
|
| 180 |
1:"HR Support",
|
|
|
|
| 174 |
logits = self.out_head(x) #[2,4,50257]
|
| 175 |
return logits
|
| 176 |
|
| 177 |
+
def predict(self, text, tokenizer, max_length=1024, pad_token_id=50256):
|
| 178 |
lookup = {
|
| 179 |
0:"Hardware",
|
| 180 |
1:"HR Support",
|