Spaces:
Running
Running
Alexey Kalinin
commited on
Commit
·
84152d3
1
Parent(s):
fd7668f
fix error
Browse files- 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(
|
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",
|