Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,7 @@ def inference(image_path, model_name, bbox_threshold):
|
|
| 142 |
sess_options.graph_optimization_level = onnxruntime.GraphOptimizationLevel.ORT_DISABLE_ALL
|
| 143 |
ort_session = onnxruntime.InferenceSession(
|
| 144 |
model_path,
|
| 145 |
-
providers=["
|
| 146 |
sess_options=sess_options
|
| 147 |
)
|
| 148 |
|
|
|
|
| 142 |
sess_options.graph_optimization_level = onnxruntime.GraphOptimizationLevel.ORT_DISABLE_ALL
|
| 143 |
ort_session = onnxruntime.InferenceSession(
|
| 144 |
model_path,
|
| 145 |
+
providers=["CPUExecutionProvider"],
|
| 146 |
sess_options=sess_options
|
| 147 |
)
|
| 148 |
|