|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from ..utils import DummyObject, requires_backends |
|
|
|
|
|
class AudioDiffusionPipeline(metaclass=DummyObject): |
|
_backends = ["paddle", "librosa"] |
|
|
|
def __init__(self, *args, **kwargs): |
|
requires_backends(self, ["paddle", "librosa"]) |
|
|
|
@classmethod |
|
def from_config(cls, *args, **kwargs): |
|
requires_backends(cls, ["paddle", "librosa"]) |
|
|
|
@classmethod |
|
def from_pretrained(cls, *args, **kwargs): |
|
requires_backends(cls, ["paddle", "librosa"]) |
|
|
|
|
|
class Mel(metaclass=DummyObject): |
|
_backends = ["paddle", "librosa"] |
|
|
|
def __init__(self, *args, **kwargs): |
|
requires_backends(self, ["paddle", "librosa"]) |
|
|
|
@classmethod |
|
def from_config(cls, *args, **kwargs): |
|
requires_backends(cls, ["paddle", "librosa"]) |
|
|
|
@classmethod |
|
def from_pretrained(cls, *args, **kwargs): |
|
requires_backends(cls, ["paddle", "librosa"]) |
|
|