Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
| 4 |
|
| 5 |
class EndpointHandler:
|
| 6 |
def __init__(self, path=""):
|
| 7 |
-
self.model = pipeline("
|
| 8 |
|
| 9 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
| 10 |
"""
|
|
|
|
| 4 |
|
| 5 |
class EndpointHandler:
|
| 6 |
def __init__(self, path=""):
|
| 7 |
+
self.model = pipeline("GPT2ForSequenceClassification", "suno/bark")
|
| 8 |
|
| 9 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
| 10 |
"""
|