Spaces:
Runtime error
Runtime error
File size: 1,242 Bytes
b115d50 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
from enum import Enum
class HostingType(str, Enum):
"""The type of hosting provider to deploy to."""
LAMBDA = "lambda"
ECS = "ecs"
class HostingEnvironment(str, Enum):
"""The software environment required for deployment."""
PYTHON38 = "python38"
STEAMSHIP_PYTORCH_CPU = "inferenceCpu"
class HostingMemory(str, Enum):
"""The amount of memory required for deployment.
This is mapped to a value dependent on the HostingType it is combined with.
"""
MIN = "min"
XXS = "xxs"
XS = "xs"
SM = "sm"
MD = "md"
LG = "lg"
XL = "xl"
XXL = "xxl"
MAX = "max"
class HostingCpu(str, Enum):
"""The amount of CPU required for deployment.
This is mapped to a value dependent on the HostingType it is combined with.
"""
MIN = "min"
XXS = "xxs"
XS = "xs"
SM = "sm"
MD = "md"
LG = "lg"
XL = "xl"
XXL = "xxl"
MAX = "max"
class HostingTimeout(str, Enum):
"""The request timeout required for deployment.
This is mapped to a value dependent on the HostingType it is combined with.
"""
MIN = "min"
XXS = "xxs"
XS = "xs"
SM = "sm"
MD = "md"
LG = "lg"
XL = "xl"
XXL = "xxl"
MAX = "max"
|