dappyx commited on
Commit
6ce453f
1 Parent(s): fc68698

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import DistilBertForQuestionAnswering, DistilBertConfig, Disti
2
  import torch
3
 
4
  model = DistilBertForQuestionAnswering(DistilBertConfig.from_pretrained('distilbert/distilbert-base-multilingual-cased')).to("cpu")
5
- st_dict = torch.load("save/best_f1/checkpoint/QazDistilBERT.pt")
6
  model.load_state_dict(st_dict)
7
  tokenizer = DistilBertTokenizerFast.from_pretrained("dappyx/QazDistilbertFast-tokenizerV3")
8
 
 
2
  import torch
3
 
4
  model = DistilBertForQuestionAnswering(DistilBertConfig.from_pretrained('distilbert/distilbert-base-multilingual-cased')).to("cpu")
5
+ st_dict = torch.load("QazDistilBERT.pt")
6
  model.load_state_dict(st_dict)
7
  tokenizer = DistilBertTokenizerFast.from_pretrained("dappyx/QazDistilbertFast-tokenizerV3")
8