Skip to content
Snippets Groups Projects
Commit 1bf3cb79 authored by Sandra Friebolin's avatar Sandra Friebolin
Browse files

Update inference

parent 31f99dde
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ input_as_dataset=preprocess.tokenizer_new(tokenizer, data_sample, max_length=512
# Load model
model=models.WordClassificationModel.from_pretrained("bert-base-uncased")
model=models.WordClassificationModel("bert-base-uncased")
model_path = "saved_models/bert.pth"
model = torch.load(model_path, map_location=device)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment