yuthrb commited on
Commit
3dc6856
·
verified ·
1 Parent(s): 5d95bc0

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -5,7 +5,7 @@ import torch
5
  class EndpointHandler:
6
  def __init__(self, model_path):
7
  self.processor = AutoProcessor.from_pretrained(model_path)
8
- self.model = MusicgenForConditionalGeneration.from_pretrained(model_path)
9
  if torch.cuda.is_available():
10
  self.model = self.model.to("cuda")
11
 
 
5
  class EndpointHandler:
6
  def __init__(self, model_path):
7
  self.processor = AutoProcessor.from_pretrained(model_path)
8
+ self.model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
9
  if torch.cuda.is_available():
10
  self.model = self.model.to("cuda")
11