Commit
·
4946849
1
Parent(s):
0cf557d
Update script
Browse files
script
CHANGED
@@ -3,7 +3,7 @@ from transformers import DistilBertTokenizer, DistilBertModel
|
|
3 |
|
4 |
# Load the tokenizer and model
|
5 |
tokenizer = DistilBertTokenizer.from_pretrained("tokenizer_config.json")
|
6 |
-
model = DistilBertModel.from_pretrained("
|
7 |
|
8 |
# Define the inference function
|
9 |
def predict(text):
|
|
|
3 |
|
4 |
# Load the tokenizer and model
|
5 |
tokenizer = DistilBertTokenizer.from_pretrained("tokenizer_config.json")
|
6 |
+
model = DistilBertModel.from_pretrained("model.pt")
|
7 |
|
8 |
# Define the inference function
|
9 |
def predict(text):
|