Spaces:
Running
on
Zero
Running
on
Zero
File size: 316 Bytes
26dad4e |
1 2 3 4 5 6 7 8 9 10 11 12 |
import videogen_hub
class VideogenHubModel():
def __init__(self, model_name):
self.model = videogen_hub.load(model_name)
def __call__(self, *args, **kwargs):
return self.model.infer_one_video(*args, **kwargs)
def load_videogenhub_model(model_name):
return VideogenHubModel(model_name) |