Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def set_seed(seed: int):
|
|
| 43 |
np.random.seed(seed)
|
| 44 |
|
| 45 |
@spaces.GPU
|
| 46 |
-
def
|
| 47 |
text_input: str,
|
| 48 |
audio_prompt_path_input: str = None,
|
| 49 |
exaggeration_input: float = 0.5,
|
|
@@ -134,7 +134,7 @@ with gr.Blocks() as demo:
|
|
| 134 |
audio_output = gr.Audio(label="Output Audio")
|
| 135 |
|
| 136 |
run_btn.click(
|
| 137 |
-
fn=
|
| 138 |
inputs=[
|
| 139 |
text,
|
| 140 |
ref_wav,
|
|
|
|
| 43 |
np.random.seed(seed)
|
| 44 |
|
| 45 |
@spaces.GPU
|
| 46 |
+
def generate_tts_audio_mcpui(
|
| 47 |
text_input: str,
|
| 48 |
audio_prompt_path_input: str = None,
|
| 49 |
exaggeration_input: float = 0.5,
|
|
|
|
| 134 |
audio_output = gr.Audio(label="Output Audio")
|
| 135 |
|
| 136 |
run_btn.click(
|
| 137 |
+
fn=generate_tts_audio_mcpui,
|
| 138 |
inputs=[
|
| 139 |
text,
|
| 140 |
ref_wav,
|