Spaces:
Sleeping
Sleeping
Delete roboflow_model.py
Browse files- roboflow_model.py +0 -12
roboflow_model.py
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
from inference import InferencePipeline
|
| 2 |
-
|
| 3 |
-
pipeline = InferencePipeline.init_with_workflow(
|
| 4 |
-
api_key="dxkgGGHSZ3DI8XzVn29U",
|
| 5 |
-
workspace_name="naveen-kumar-hnmil",
|
| 6 |
-
workflow_id="detect-count-and-visualize-5",
|
| 7 |
-
video_reference=None # Required
|
| 8 |
-
)
|
| 9 |
-
|
| 10 |
-
def predict_image(image_path: str):
|
| 11 |
-
result = pipeline.infer(image_path)
|
| 12 |
-
return result["output_image"].numpy_image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|