PROYECTO_2024 / decorators.py
C2MV's picture
Create decorators.py
209bb28 verified
raw
history blame contribute delete
252 Bytes
# decorators.py
import spaces
def gpu_decorator(duration=100):
def decorator(func):
@spaces.GPU(duration=duration)
def wrapper(*args, **kwargs):
return func(*args, **kwargs)
return wrapper
return decorator