Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,10 @@ for model_id in model_ids:
|
|
17 |
from TTS.tts.configs.bark_config import BarkConfig
|
18 |
from TTS.tts.models.bark import Bark
|
19 |
|
20 |
-
|
|
|
21 |
model = Bark.init_from_config(config)
|
22 |
-
model.load_checkpoint(config, checkpoint_dir="checkpoints/bark", eval=True)
|
23 |
|
24 |
def infer(prompt, input_wav_file):
|
25 |
|
|
|
17 |
from TTS.tts.configs.bark_config import BarkConfig
|
18 |
from TTS.tts.models.bark import Bark
|
19 |
|
20 |
+
#os.environ['CUDA_VISIBLE_DEVICES'] = '1'
|
21 |
+
config = BarkConfig(gpu=True)
|
22 |
model = Bark.init_from_config(config)
|
23 |
+
model.load_checkpoint(config, checkpoint_dir="checkpoints/bark", eval=True)
|
24 |
|
25 |
def infer(prompt, input_wav_file):
|
26 |
|