Skip to content

Commit 68d4227

Browse files
committed
adding demo script
1 parent aa4f92a commit 68d4227

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

configure_edge_demo.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from groundlight import ExperimentalApi
2+
3+
gl = ExperimentalApi()
4+
5+
print('Configuring Edge Endpoint...')
6+
gl.configure_edge(
7+
edge_inference_configs={
8+
"tims_config": {
9+
"enabled": True,
10+
"always_return_edge_prediction": True,
11+
"disable_cloud_escalation": False,
12+
"min_time_between_escalations": 30.0,
13+
},
14+
},
15+
detectors=[
16+
{"detector_id": "det_31WjVpvBiOmxUBzVqiOa3G2UgMV", "edge_inference_config": "tims_config"},
17+
# {"detector_id": "det_346zU49rFpY9I7f1PiuzArYdTdJ", "edge_inference_config": "tims_config"},
18+
# {"detector_id": "det_398G23k3Dn6sRPVHbySHeyGLmai", "edge_inference_config": "tims_config"},
19+
# {"detector_id": "det_39oO6BR1IJjmLOjmWF3F4R4of4o", "edge_inference_config": "tims_config"},
20+
# {"detector_id": "det_2mWrXjFFSGcn2PYKakS7EfYfF3l", "edge_inference_config": "tims_config"},
21+
],
22+
)
23+
print("Configured Edge Endpoint successfully!")

0 commit comments

Comments
 (0)