Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -750,11 +750,14 @@ from parler_tts import ParlerTTSForConditionalGeneration, ParlerTTSStreamer
|
|
750 |
from transformers import AutoTokenizer
|
751 |
from threading import Thread
|
752 |
|
|
|
|
|
753 |
|
754 |
def generate_audio_parler_tts(text):
|
755 |
description = "A female speaker delivers a slightly expressive and animated speech with a moderate speed and pitch. The recording is of very high quality, with the speaker's voice sounding clear and very close up."
|
756 |
chunk_size_in_s = 0.5
|
757 |
|
|
|
758 |
# Initialize the tokenizer and model
|
759 |
parler_tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
760 |
parler_model = ParlerTTSForConditionalGeneration.from_pretrained(repo_id).to(device)
|
|
|
750 |
from transformers import AutoTokenizer
|
751 |
from threading import Thread
|
752 |
|
753 |
+
repo_id = "parler-tts/parler-tts-mini-v1"
|
754 |
+
|
755 |
|
756 |
def generate_audio_parler_tts(text):
|
757 |
description = "A female speaker delivers a slightly expressive and animated speech with a moderate speed and pitch. The recording is of very high quality, with the speaker's voice sounding clear and very close up."
|
758 |
chunk_size_in_s = 0.5
|
759 |
|
760 |
+
|
761 |
# Initialize the tokenizer and model
|
762 |
parler_tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
763 |
parler_model = ParlerTTSForConditionalGeneration.from_pretrained(repo_id).to(device)
|