WeatherPred / weatherpred /zerogpu.py
yyyc's picture
fist push the app
5194558
Raw
History Blame Contribute Delete
365 Bytes
"""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()