jauntybrain commited on
Commit
8ebc1d4
1 Parent(s): 42c44d1

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -8,7 +8,7 @@ class EndpointHandler:
8
  self.processor = AutoProcessor.from_pretrained(path)
9
  self.model = MusicgenForConditionalGeneration.from_pretrained(path, torch_dtype=torch.float16).to("cuda")
10
 
11
- def __call__(self, data: Dict[str, Any]) -> Dict[str, str]:
12
  """
13
  Args:
14
  data (:dict:):
 
8
  self.processor = AutoProcessor.from_pretrained(path)
9
  self.model = MusicgenForConditionalGeneration.from_pretrained(path, torch_dtype=torch.float16).to("cuda")
10
 
11
+ def __call__(self, data: Dict[str, Any]) -> bytes:
12
  """
13
  Args:
14
  data (:dict:):