Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,6 @@ def synthesize_tts(
|
|
32 |
speaker_idx: str = 'Ana Florence',
|
33 |
language: str = 'ja',
|
34 |
temperature: float = 0.65,
|
35 |
-
length_penalty: float = 1.0,
|
36 |
-
repetition_penalty: float = 1.9,
|
37 |
top_k: int = 50,
|
38 |
top_p: float = 0.8,
|
39 |
speed: float = 1.0,
|
@@ -66,8 +64,6 @@ def synthesize_tts(
|
|
66 |
language=language,
|
67 |
file_path=output_buffer,
|
68 |
temperature=temperature,
|
69 |
-
length_penalty=length_penalty,
|
70 |
-
repetition_penalty=repetition_penalty,
|
71 |
top_k=top_k,
|
72 |
top_p=top_p,
|
73 |
speed=speed,
|
@@ -80,8 +76,6 @@ def synthesize_tts(
|
|
80 |
language=language,
|
81 |
file_path=output_buffer,
|
82 |
temperature=temperature,
|
83 |
-
length_penalty=length_penalty,
|
84 |
-
repetition_penalty=repetition_penalty,
|
85 |
top_k=top_k,
|
86 |
top_p=top_p,
|
87 |
speed=speed,
|
@@ -121,8 +115,6 @@ inputs = [
|
|
121 |
label="Language"
|
122 |
),
|
123 |
gr.Slider(0, 1, value=0.65, step=0.01, label="Temperature"),
|
124 |
-
gr.Slider(0.5, 2, value=1.0, step=0.1, label="Length Penalty"),
|
125 |
-
gr.Slider(1.0, 10.0, value=1.9, step=0.1, label="Repetition Penalty"),
|
126 |
gr.Slider(1, 100, value=50, step=1, label="Top-K"),
|
127 |
gr.Slider(0, 1, value=0.8, step=0.01, label="Top-P"),
|
128 |
gr.Slider(0.5, 2, value=1.0, step=0.01, label="Speed"),
|
|
|
32 |
speaker_idx: str = 'Ana Florence',
|
33 |
language: str = 'ja',
|
34 |
temperature: float = 0.65,
|
|
|
|
|
35 |
top_k: int = 50,
|
36 |
top_p: float = 0.8,
|
37 |
speed: float = 1.0,
|
|
|
64 |
language=language,
|
65 |
file_path=output_buffer,
|
66 |
temperature=temperature,
|
|
|
|
|
67 |
top_k=top_k,
|
68 |
top_p=top_p,
|
69 |
speed=speed,
|
|
|
76 |
language=language,
|
77 |
file_path=output_buffer,
|
78 |
temperature=temperature,
|
|
|
|
|
79 |
top_k=top_k,
|
80 |
top_p=top_p,
|
81 |
speed=speed,
|
|
|
115 |
label="Language"
|
116 |
),
|
117 |
gr.Slider(0, 1, value=0.65, step=0.01, label="Temperature"),
|
|
|
|
|
118 |
gr.Slider(1, 100, value=50, step=1, label="Top-K"),
|
119 |
gr.Slider(0, 1, value=0.8, step=0.01, label="Top-P"),
|
120 |
gr.Slider(0.5, 2, value=1.0, step=0.01, label="Speed"),
|