Update handler.py
Browse files- 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(
|
| 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 |
|