Spaces:
Sleeping
Sleeping
File size: 317 Bytes
2e99c77 |
1 2 3 4 5 6 7 8 9 10 |
import functools
def GPU(func):
"""Decorator to run a function on the fake GPU
to get comparable with HF Space"""
@functools.wraps(func) # Preserves original function's metadata
def wrapper(*args, **kwargs):
result = func(*args, **kwargs)
return result
return wrapper |