jayebaku commited on
Commit
675b04e
·
verified ·
1 Parent(s): 2497637

Update classifier.py

Browse files
Files changed (1) hide show
  1. classifier.py +2 -1
classifier.py CHANGED
@@ -14,7 +14,8 @@ def classify(tweet, event_model, hftoken, threshold):
14
 
15
 
16
  # with onnx pipeline
17
- onnx_classifier = opipeline("text-classification", model=event_model, accelerator="ort")
 
18
  prediction = onnx_classifier(text)[0]
19
 
20
 
 
14
 
15
 
16
  # with onnx pipeline
17
+ onnx_classifier = opipeline("text-classification", model=event_model, accelerator="ort",
18
+ batch_size=512, token=hftoken, device="cpu")
19
  prediction = onnx_classifier(text)[0]
20
 
21