Instructions to use dl1wjd2/Logistics_AX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use dl1wjd2/Logistics_AX with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("dl1wjd2/Logistics_AX", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Download hug/lib/python3.12/site-packages/httpx2/websockets/_exceptions.py from dl1wjd2/Logistics_AX: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/httpx2/websockets/_exceptions.py
- Command line
-
hf download hf://dl1wjd2/Logistics_AX/hug/lib/python3.12/site-packages/httpx2/websockets/_exceptions.py
-
curl -L -o _exceptions.py https://huggingface.co/dl1wjd2/Logistics_AX/resolve/main/hug/lib/python3.12/site-packages/httpx2/websockets/_exceptions.py
1.29 kB
| from __future__ import annotations | |
| import typing | |
| if typing.TYPE_CHECKING: | |
| import wsproto | |
| from .._models import Response | |
| class HTTPXWSException(Exception): | |
| """ | |
| Base exception class for HTTPX WS. | |
| """ | |
| class WebSocketUpgradeError(HTTPXWSException): | |
| """ | |
| Raised when the initial connection didn't correctly upgrade to a WebSocket session. | |
| """ | |
| def __init__(self, response: Response) -> None: | |
| self.response = response | |
| class WebSocketDisconnect(HTTPXWSException): | |
| """ | |
| Raised when the server closed the WebSocket session. | |
| Args: | |
| code: | |
| The integer close code to indicate why the connection has closed. | |
| reason: | |
| Additional reasoning for why the connection has closed. | |
| """ | |
| def __init__(self, code: int = 1000, reason: str | None = None) -> None: | |
| self.code = code | |
| self.reason = reason or "" | |
| class WebSocketInvalidTypeReceived(HTTPXWSException): | |
| """ | |
| Raised when an event is not of the expected type. | |
| """ | |
| def __init__(self, event: wsproto.events.Event) -> None: | |
| self.event = event | |
| class WebSocketNetworkError(HTTPXWSException): | |
| """ | |
| Raised when a network error occured, | |
| typically if the underlying stream has closed or timeout. | |
| """ | |