Spaces:
Running
on
Zero
Running
on
Zero
File size: 266 Bytes
a846205 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
modules = {}
def register(name):
def decorator(cls):
modules[name] = cls
return cls
return decorator
def make(name, config):
model = modules[name](config)
return model
from . import (
light,
stable_diffusion,
chord,
) |