Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ 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(
|
22 |
model = Bark.init_from_config(config)
|
23 |
model.load_checkpoint(config, checkpoint_dir="checkpoints/bark", eval=True)
|
24 |
|
@@ -56,7 +56,8 @@ def infer(prompt, input_wav_file):
|
|
56 |
text,
|
57 |
config,
|
58 |
speaker_id=f"{file_name}",
|
59 |
-
voice_dirs="bark_voices/"
|
|
|
60 |
)
|
61 |
|
62 |
print(output_dict)
|
|
|
18 |
from TTS.tts.models.bark import Bark
|
19 |
|
20 |
#os.environ['CUDA_VISIBLE_DEVICES'] = '1'
|
21 |
+
config = BarkConfig()
|
22 |
model = Bark.init_from_config(config)
|
23 |
model.load_checkpoint(config, checkpoint_dir="checkpoints/bark", eval=True)
|
24 |
|
|
|
56 |
text,
|
57 |
config,
|
58 |
speaker_id=f"{file_name}",
|
59 |
+
voice_dirs="bark_voices/",
|
60 |
+
gpu=True
|
61 |
)
|
62 |
|
63 |
print(output_dict)
|