Spaces:
Running
on
Zero
Running
on
Zero
Den Pavloff
commited on
Commit
·
421a1f9
1
Parent(s):
52c0d1f
gfgdg
Browse files
app.py
CHANGED
|
@@ -175,11 +175,11 @@ with gr.Blocks(title="KaniTTS - Text to Speech", theme=gr.themes.Default()) as d
|
|
| 175 |
|
| 176 |
with gr.Row():
|
| 177 |
for text in list(demo_examples.keys())[:4]:
|
| 178 |
-
gr.Button(text).click(lambda t=text: play_demo(t), outputs=[audio_output])
|
| 179 |
|
| 180 |
with gr.Row():
|
| 181 |
for text in list(demo_examples.keys())[4:8]:
|
| 182 |
-
gr.Button(text).click(lambda t=text: play_demo(t), outputs=[audio_output])
|
| 183 |
|
| 184 |
|
| 185 |
# # CPU validation event
|
|
|
|
| 175 |
|
| 176 |
with gr.Row():
|
| 177 |
for text in list(demo_examples.keys())[:4]:
|
| 178 |
+
gr.Button(text).click(lambda t=text: play_demo(t), outputs=[audio_output, 'DEMO'])
|
| 179 |
|
| 180 |
with gr.Row():
|
| 181 |
for text in list(demo_examples.keys())[4:8]:
|
| 182 |
+
gr.Button(text).click(lambda t=text: play_demo(t), outputs=[audio_output, 'DEMO'])
|
| 183 |
|
| 184 |
|
| 185 |
# # CPU validation event
|
util.py
CHANGED
|
@@ -16,7 +16,7 @@ class Config:
|
|
| 16 |
tokeniser_length: int = 64400
|
| 17 |
start_of_text: int = 1
|
| 18 |
end_of_text: int = 2
|
| 19 |
-
max_new_tokens: int =
|
| 20 |
temperature: float = .6
|
| 21 |
top_p: float = .95
|
| 22 |
repetition_penalty: float = 1.1
|
|
|
|
| 16 |
tokeniser_length: int = 64400
|
| 17 |
start_of_text: int = 1
|
| 18 |
end_of_text: int = 2
|
| 19 |
+
max_new_tokens: int = 1200
|
| 20 |
temperature: float = .6
|
| 21 |
top_p: float = .95
|
| 22 |
repetition_penalty: float = 1.1
|