Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download shared/ctypes_enum.py from LatticeSemi/sensAI-Generic-Object-Detection: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/resolve/main/shared/ctypes_enum.py
- Command line
-
hf download hf://spaces/LatticeSemi/sensAI-Generic-Object-Detection/shared/ctypes_enum.py
-
curl -L -o ctypes_enum.py https://huggingface.co/spaces/LatticeSemi/sensAI-Generic-Object-Detection/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) | |