Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from f5_tts.api import F5TTS
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
import os
|
| 7 |
|
| 8 |
-
VARIANTS = ["model_1000000"
|
| 9 |
models = {}
|
| 10 |
for variant in VARIANTS:
|
| 11 |
models[variant] = F5TTS(
|
|
@@ -28,7 +28,7 @@ def generate(text, ref_audio, variant, progress = gr.Progress()):
|
|
| 28 |
return f.name
|
| 29 |
|
| 30 |
with gr.Blocks() as demo:
|
| 31 |
-
gr.Markdown("# OpenF5 TTS
|
| 32 |
textbox = gr.Textbox(label="Text")
|
| 33 |
audio = gr.Audio(label="Reference Audio", type="filepath")
|
| 34 |
variant = gr.Radio(choices=VARIANTS, value=VARIANTS[0], label="Variant")
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
import os
|
| 7 |
|
| 8 |
+
VARIANTS = ["model_1000000"]
|
| 9 |
models = {}
|
| 10 |
for variant in VARIANTS:
|
| 11 |
models[variant] = F5TTS(
|
|
|
|
| 28 |
return f.name
|
| 29 |
|
| 30 |
with gr.Blocks() as demo:
|
| 31 |
+
gr.Markdown("# Demo for OpenF5 TTS\n\nTry out [OpenF5-TTS](https://huggingface.co/mrfakename/OpenF5-TTS)")
|
| 32 |
textbox = gr.Textbox(label="Text")
|
| 33 |
audio = gr.Audio(label="Reference Audio", type="filepath")
|
| 34 |
variant = gr.Radio(choices=VARIANTS, value=VARIANTS[0], label="Variant")
|