Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Upload LSCC-Demo-HMI-Human-Machine-Interface-Edge-Vision-Engine with upload_demo.py
47b87b9 verified Download shared/ctypes_enum.py from LatticeSemi/sensAI-Edge-Vision-Engine-SDK: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Edge-Vision-Engine-SDK/resolve/main/shared/ctypes_enum.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Edge-Vision-Engine-SDK/shared/ctypes_enum.py
-
curl -L -o ctypes_enum.py https://huggingface.co/spaces/LatticeSemi/sensAI-Edge-Vision-Engine-SDK/resolve/main/shared/ctypes_enum.py
270 Bytes
| from enum import IntEnum | |
| # Taken from https://v4.chriskrycho.com/2015/ctypes-structures-and-dll-exports.html | |
| class CtypesEnum(IntEnum): | |
| """A ctypes-compatible IntEnum superclass.""" | |
| def from_param(cls, obj): | |
| return int(obj) | |