Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def generate_speech(
|
|
| 60 |
return None
|
| 61 |
|
| 62 |
# Create Gradio interface
|
| 63 |
-
with gr.Blocks(title="VoxCPM Text-to-Speech") as demo:
|
| 64 |
gr.Markdown(
|
| 65 |
"""
|
| 66 |
# 🎙️ VoxCPM Text-to-Speech
|
|
@@ -81,7 +81,7 @@ with gr.Blocks(title="VoxCPM Text-to-Speech") as demo:
|
|
| 81 |
value="VoxCPM is an innovative end-to-end TTS model from ModelBest, designed to generate highly expressive speech."
|
| 82 |
)
|
| 83 |
|
| 84 |
-
with gr.Accordion("Voice Cloning
|
| 85 |
prompt_audio = gr.Audio(
|
| 86 |
label="Reference Audio (Upload a reference audio file for voice cloning)",
|
| 87 |
type="filepath",
|
|
@@ -89,7 +89,7 @@ with gr.Blocks(title="VoxCPM Text-to-Speech") as demo:
|
|
| 89 |
)
|
| 90 |
prompt_text = gr.Textbox(
|
| 91 |
label="Reference Text",
|
| 92 |
-
placeholder="Text corresponding to the reference audio
|
| 93 |
lines=2
|
| 94 |
)
|
| 95 |
|
|
|
|
| 60 |
return None
|
| 61 |
|
| 62 |
# Create Gradio interface
|
| 63 |
+
with gr.Blocks(title="VoxCPM Text-to-Speech", theme=gr.themes.Soft()) as demo:
|
| 64 |
gr.Markdown(
|
| 65 |
"""
|
| 66 |
# 🎙️ VoxCPM Text-to-Speech
|
|
|
|
| 81 |
value="VoxCPM is an innovative end-to-end TTS model from ModelBest, designed to generate highly expressive speech."
|
| 82 |
)
|
| 83 |
|
| 84 |
+
with gr.Accordion("Voice Cloning", open=False):
|
| 85 |
prompt_audio = gr.Audio(
|
| 86 |
label="Reference Audio (Upload a reference audio file for voice cloning)",
|
| 87 |
type="filepath",
|
|
|
|
| 89 |
)
|
| 90 |
prompt_text = gr.Textbox(
|
| 91 |
label="Reference Text",
|
| 92 |
+
placeholder="Text corresponding to the reference audio",
|
| 93 |
lines=2
|
| 94 |
)
|
| 95 |
|