Spaces:
Runtime error
Runtime error
fix pipeline import
Browse files
main.py
CHANGED
@@ -19,7 +19,8 @@ from typing import Dict, List, Union
|
|
19 |
from optimum.onnxruntime import ORTModelForSequenceClassification, ORTOptimizer, ORTQuantizer
|
20 |
from optimum.onnxruntime.configuration import OptimizationConfig, AutoQuantizationConfig
|
21 |
from optimum.pipelines import pipeline as ort_pipeline
|
22 |
-
from transformers import BertTokenizer, BertForSequenceClassification
|
|
|
23 |
|
24 |
from utils import calculate_inference_time
|
25 |
|
|
|
19 |
from optimum.onnxruntime import ORTModelForSequenceClassification, ORTOptimizer, ORTQuantizer
|
20 |
from optimum.onnxruntime.configuration import OptimizationConfig, AutoQuantizationConfig
|
21 |
from optimum.pipelines import pipeline as ort_pipeline
|
22 |
+
from transformers import BertTokenizer, BertForSequenceClassification
|
23 |
+
from transformers import pipeline as pt_pipeline
|
24 |
|
25 |
from utils import calculate_inference_time
|
26 |
|