Buckets:
| from locust import HttpUser, task | |
| from PIL import Image | |
| from nos.server.http._utils import encode_dict | |
| from nos.test.utils import NOS_TEST_IMAGE | |
| data = { | |
| "model_id": "noop/process-images", | |
| "inputs": { | |
| "images": Image.open(NOS_TEST_IMAGE), | |
| }, | |
| } | |
| encoded_data = encode_dict(data) | |
| class InferenceServiceUser(HttpUser): | |
| def embed(self): | |
| self.client.post( | |
| "/infer", | |
| headers={"Content-Type": "application/json"}, | |
| json=encoded_data, | |
| ) | |
Xet Storage Details
- Size:
- 518 Bytes
- Xet hash:
- a8f88c89ca171587cc033859e84d3c8951d6520d258493f46a318f5ba8e2eb8f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.