Text-to-Audio
Transformers
musicgen
Inference Endpoints
mmomeni commited on
Commit
7139a45
·
verified ·
1 Parent(s): 3b84a01

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -6,7 +6,7 @@ class EndpointHandler:
6
  def __init__(self, path = ""):
7
  # Load the AudioGen model
8
  # self.model = AudioGen.get_pretrained('facebook/audiogen-medium')
9
- self.model = AudioGen.get_pretrained(".")
10
  self.model.set_generation_params(duration=5) # Set default duration to 5 seconds
11
 
12
  def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
 
6
  def __init__(self, path = ""):
7
  # Load the AudioGen model
8
  # self.model = AudioGen.get_pretrained('facebook/audiogen-medium')
9
+ self.model = AudioGen.get_pretrained(path)
10
  self.model.set_generation_params(duration=5) # Set default duration to 5 seconds
11
 
12
  def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]: