akhaliq HF Staff commited on
Commit
2ce4e07
·
verified ·
1 Parent(s): 99096ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 (Optional)", open=False):
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 (optional)",
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