Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -236,7 +236,7 @@ def _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_ou
|
|
236 |
def toggle_autoplay(autoplay):
|
237 |
return gr.Audio(interactive=False, label='Output Audio', autoplay=autoplay)
|
238 |
|
239 |
-
USE_GPU_CHOICES = [('Auto', 'auto'), ('CPU', False), ('ZeroGPU', True)]
|
240 |
USE_GPU_INFOS = {
|
241 |
'auto': 'Use CPU or GPU, whichever is faster',
|
242 |
False: 'CPU is ~faster <100 tokens',
|
@@ -437,7 +437,7 @@ with gr.Blocks() as lf_tts:
|
|
437 |
with gr.Row():
|
438 |
voice = gr.Dropdown(list(CHOICES.items()), value='af', label='Voice', info='⭐ voices are stable, 🧪 voices are unstable')
|
439 |
use_gpu = gr.Dropdown(
|
440 |
-
[('ZeroGPU', True), ('CPU', False)],
|
441 |
value=CUDA_AVAILABLE,
|
442 |
label='Hardware',
|
443 |
info='GPU is >10x faster but has a usage quota',
|
@@ -474,7 +474,7 @@ with gr.Blocks() as lf_tts:
|
|
474 |
|
475 |
with gr.Blocks() as about:
|
476 |
gr.Markdown("""
|
477 |
-
Kokoro is a frontier TTS model for its size. It has 80 million parameters,<sup>[1]</sup> uses a lean StyleTTS 2 architecture,<sup>[2]</sup> and was trained on high-quality data. The weights are currently private, but a free public demo is hosted here, at `https://hf.co/spaces/hexgrad/Kokoro-TTS`. The Community tab is open for feature requests, bug reports, etc. For other inquiries, contact
|
478 |
|
479 |
### FAQ
|
480 |
#### Will this be open sourced?
|
|
|
236 |
def toggle_autoplay(autoplay):
|
237 |
return gr.Audio(interactive=False, label='Output Audio', autoplay=autoplay)
|
238 |
|
239 |
+
USE_GPU_CHOICES = [('Auto 🔀', 'auto'), ('CPU 🚲', False), ('ZeroGPU 🏎️', True)]
|
240 |
USE_GPU_INFOS = {
|
241 |
'auto': 'Use CPU or GPU, whichever is faster',
|
242 |
False: 'CPU is ~faster <100 tokens',
|
|
|
437 |
with gr.Row():
|
438 |
voice = gr.Dropdown(list(CHOICES.items()), value='af', label='Voice', info='⭐ voices are stable, 🧪 voices are unstable')
|
439 |
use_gpu = gr.Dropdown(
|
440 |
+
[('ZeroGPU 🚀', True), ('CPU 🐌', False)],
|
441 |
value=CUDA_AVAILABLE,
|
442 |
label='Hardware',
|
443 |
info='GPU is >10x faster but has a usage quota',
|
|
|
474 |
|
475 |
with gr.Blocks() as about:
|
476 |
gr.Markdown("""
|
477 |
+
Kokoro is a frontier TTS model for its size. It has 80 million parameters,<sup>[1]</sup> uses a lean StyleTTS 2 architecture,<sup>[2]</sup> and was trained on high-quality data. The weights are currently private, but a free public demo is hosted here, at `https://hf.co/spaces/hexgrad/Kokoro-TTS`. The Community tab is open for feature requests, bug reports, etc. For other inquiries, contact `@rzvzn` on Discord.
|
478 |
|
479 |
### FAQ
|
480 |
#### Will this be open sourced?
|