Spaces:
Sleeping
Sleeping
File size: 365 Bytes
5194558 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | """Compatibility wrapper for HuggingFace ZeroGPU's spaces package."""
from __future__ import annotations
try:
import spaces
except ImportError:
class _SpacesFallback:
@staticmethod
def GPU(*_args, **_kwargs):
def decorator(function):
return function
return decorator
spaces = _SpacesFallback()
|