Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -37,5 +37,5 @@ def get_labels(text, model, tokenizer, count_labels=8):
|
|
| 37 |
tokenizer = DistilBertTokenizerFast()
|
| 38 |
model = DistilBertForSequenceClassification()
|
| 39 |
model.load_state_dict(torch.load('weight_model'))
|
| 40 |
-
return model
|
| 41 |
|
|
|
|
| 37 |
tokenizer = DistilBertTokenizerFast()
|
| 38 |
model = DistilBertForSequenceClassification()
|
| 39 |
model.load_state_dict(torch.load('weight_model'))
|
| 40 |
+
return model, tokenizer
|
| 41 |
|