Update inference.py
Browse files- inference.py +1 -0
inference.py
CHANGED
@@ -29,6 +29,7 @@ def inference(input_text):
|
|
29 |
model.eval()
|
30 |
input = tokenizer(input_text)
|
31 |
input_ids = torch.Tensor(input['input_ids'])
|
|
|
32 |
mask = torch.Tensor(input['attention_mask'])
|
33 |
output = model(input_ids, mask)
|
34 |
|
|
|
29 |
model.eval()
|
30 |
input = tokenizer(input_text)
|
31 |
input_ids = torch.Tensor(input['input_ids'])
|
32 |
+
print(input_ids)
|
33 |
mask = torch.Tensor(input['attention_mask'])
|
34 |
output = model(input_ids, mask)
|
35 |
|