Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from transformers import AutoTokenizer, AutoFeatureExtractor, set_seed
|
|
12 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
13 |
|
14 |
|
15 |
-
repo_id = "
|
16 |
|
17 |
model = ParlerTTSForConditionalGeneration.from_pretrained(repo_id).to(device)
|
18 |
tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
@@ -22,23 +22,19 @@ feature_extractor = AutoFeatureExtractor.from_pretrained(repo_id)
|
|
22 |
SAMPLE_RATE = feature_extractor.sampling_rate
|
23 |
SEED = 42
|
24 |
|
25 |
-
default_text = "
|
26 |
examples = [
|
27 |
[
|
28 |
-
"
|
29 |
-
"A
|
30 |
],
|
31 |
[
|
32 |
-
"
|
33 |
-
"A
|
34 |
],
|
35 |
[
|
36 |
-
"
|
37 |
-
"A
|
38 |
-
],
|
39 |
-
[
|
40 |
-
"Montrose also, after having experienced still more variety of good and bad fortune, threw down his arms, and retired out of the kingdom.",
|
41 |
-
"A male speaker with a low-pitched voice delivers his words at a fast pace and an animated tone, in a very spacious environment, accompanied by noticeable background noise.",
|
42 |
],
|
43 |
]
|
44 |
|
|
|
12 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
13 |
|
14 |
|
15 |
+
repo_id = "ittailup/pe-v0.1"
|
16 |
|
17 |
model = ParlerTTSForConditionalGeneration.from_pretrained(repo_id).to(device)
|
18 |
tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
|
|
22 |
SAMPLE_RATE = feature_extractor.sampling_rate
|
23 |
SEED = 42
|
24 |
|
25 |
+
default_text = "Estos pendientes que me los he puesto hoy dia, ¿saben que marca es?"
|
26 |
examples = [
|
27 |
[
|
28 |
+
"oficial sobre acciones ya consumadas, no? Entonces aquí quisiera simplemente dejar.",
|
29 |
+
"A man from Peru delivers a speech in a moderately reverberant room with a quiet hum of ambient sound, speaking in a monotone tone at a slightly slow pace, with a slightly low-pitched voice."
|
30 |
],
|
31 |
[
|
32 |
+
"No será, como decan estos congresistas, porque donde no hay coima, los funcionarios locales no ponen energa?",
|
33 |
+
"A man from Peru delivers a speech in a quite low-pitched, slightly slow, and quite monotone tone in a space that sounds quite confined, with a very good recording quality.",
|
34 |
],
|
35 |
[
|
36 |
+
"que solo el cuarenta por ciento de familias tiene Internet en casa, sesenta por ciento no lo tiene, por tanto estaban fuera del conteo",
|
37 |
+
"A female speaker from Peru delivers her speech in a slightly muffled and confined space with a hint of background noise. Her voice has a high pitch and remains fairly monotone, with a moderate speed of delivery.",
|
|
|
|
|
|
|
|
|
38 |
],
|
39 |
]
|
40 |
|