Spaces:
Running on Zero
Running on Zero
File size: 242 Bytes
3631a8e | 1 2 3 4 5 6 7 8 9 10 11 | """ZeroGPU compatibility decorator for HuggingFace Spaces."""
try:
import spaces
GPU = spaces.GPU
except ImportError:
def GPU(func=None, duration=None):
if func is None:
return lambda f: f
return func
|