File size: 948 Bytes
8206b09
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends


class AudioDiffusionPipeline(metaclass=DummyObject):
    _backends = ["torch", "librosa"]

    def __init__(self, *args, **kwargs):
        requires_backends(self, ["torch", "librosa"])

    @classmethod
    def from_config(cls, *args, **kwargs):
        requires_backends(cls, ["torch", "librosa"])

    @classmethod
    def from_pretrained(cls, *args, **kwargs):
        requires_backends(cls, ["torch", "librosa"])


class Mel(metaclass=DummyObject):
    _backends = ["torch", "librosa"]

    def __init__(self, *args, **kwargs):
        requires_backends(self, ["torch", "librosa"])

    @classmethod
    def from_config(cls, *args, **kwargs):
        requires_backends(cls, ["torch", "librosa"])

    @classmethod
    def from_pretrained(cls, *args, **kwargs):
        requires_backends(cls, ["torch", "librosa"])