Alexey Kalinin commited on
Commit
84152d3
·
1 Parent(s): fd7668f
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -5,7 +5,7 @@ from joblib import load
5
 
6
 
7
  def load_model(path2chkpt: str, path2mapping: str):
8
- model = AutoModelForSequenceClassification.from_pretrained("/home/jupyter/datasphere/project/hw4_nlp_ops/weights_20_classes/checkpoint-4500")
9
  tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-cased")
10
 
11
  pipe = pipeline("text-classification",
 
5
 
6
 
7
  def load_model(path2chkpt: str, path2mapping: str):
8
+ model = AutoModelForSequenceClassification.from_pretrained(path2chkpt)
9
  tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-cased")
10
 
11
  pipe = pipeline("text-classification",