chattts / modules /hf.py
zhzluke96
update
374f426
raw
history blame
218 Bytes
# 给huggingface space写的兼容代码
try:
import spaces
except:
class NoneSpaces:
def __init__(self):
pass
def GPU(self, fn):
return fn
spaces = NoneSpaces()