Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,14 +91,14 @@ def vc_fn(input_audio,vc_transform,vcid):
|
|
| 91 |
|
| 92 |
app = gr.Blocks()
|
| 93 |
with app:
|
|
|
|
| 94 |
with gr.Tabs():
|
| 95 |
with gr.TabItem("Basic"):
|
| 96 |
vc_input3 = gr.Audio(label="Input Audio (30s limitation)")
|
| 97 |
vc_transform = gr.Number(label="transform",value=1.0)
|
| 98 |
-
vcid=gr.Textbox(label="speakerID",value=0),
|
| 99 |
vc_submit = gr.Button("Convert", variant="primary")
|
| 100 |
vc_output1 = gr.Textbox(label="Output Message")
|
| 101 |
vc_output2 = gr.Audio(label="Output Audio")
|
| 102 |
-
vc_submit.click(vc_fn, [vc_input3, vc_transform
|
| 103 |
|
| 104 |
app.launch()
|
|
|
|
| 91 |
|
| 92 |
app = gr.Blocks()
|
| 93 |
with app:
|
| 94 |
+
with gradio.inputs.Number(vcid, default=0, label=speakerID, optional=False)
|
| 95 |
with gr.Tabs():
|
| 96 |
with gr.TabItem("Basic"):
|
| 97 |
vc_input3 = gr.Audio(label="Input Audio (30s limitation)")
|
| 98 |
vc_transform = gr.Number(label="transform",value=1.0)
|
|
|
|
| 99 |
vc_submit = gr.Button("Convert", variant="primary")
|
| 100 |
vc_output1 = gr.Textbox(label="Output Message")
|
| 101 |
vc_output2 = gr.Audio(label="Output Audio")
|
| 102 |
+
vc_submit.click(vc_fn, [vc_input3, vc_transform], [vc_output1, vc_output2])
|
| 103 |
|
| 104 |
app.launch()
|