juliandreykorn
commited on
Commit
·
5d79ae9
1
Parent(s):
696efb5
Tries to fix handler
Browse files- .python-version +0 -1
- handler.py +1 -0
.python-version
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
3.9
|
|
|
|
handler.py
CHANGED
@@ -11,6 +11,7 @@ class EndpointHandler:
|
|
11 |
self.model = Xtts.init_from_config(config)
|
12 |
self.model.load_checkpoint(config, checkpoint_dir=path, eval=True)
|
13 |
self.model.cuda()
|
|
|
14 |
|
15 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
16 |
text = data['inputs']
|
|
|
11 |
self.model = Xtts.init_from_config(config)
|
12 |
self.model.load_checkpoint(config, checkpoint_dir=path, eval=True)
|
13 |
self.model.cuda()
|
14 |
+
self.config = config
|
15 |
|
16 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
17 |
text = data['inputs']
|