Commit
Β·
07fd1a0
1
Parent(s):
4465af7
debug for hf space
Browse files- indextts/infer.py +2 -0
indextts/infer.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import os
|
| 2 |
import re
|
| 3 |
import sys
|
|
@@ -15,6 +16,7 @@ from indextts.BigVGAN.models import BigVGAN as Generator
|
|
| 15 |
|
| 16 |
|
| 17 |
class IndexTTS:
|
|
|
|
| 18 |
def __init__(self, cfg_path='checkpoints/config.yaml', model_dir='checkpoints'):
|
| 19 |
self.cfg = OmegaConf.load(cfg_path)
|
| 20 |
self.device = 'cuda:0'
|
|
|
|
| 1 |
+
import spaces
|
| 2 |
import os
|
| 3 |
import re
|
| 4 |
import sys
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
class IndexTTS:
|
| 19 |
+
@spaces.GPU(duration=65)
|
| 20 |
def __init__(self, cfg_path='checkpoints/config.yaml', model_dir='checkpoints'):
|
| 21 |
self.cfg = OmegaConf.load(cfg_path)
|
| 22 |
self.device = 'cuda:0'
|