bzd4576 commited on
Commit
f8d12aa
·
1 Parent(s): b9a6fbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -101,11 +101,13 @@ with app:
101
  with gr.Tabs():
102
  with gr.TabItem("Basic"):
103
  vc_input3 = gr.Audio(label="Input Audio (30s limitation)")
104
- vc_transform = gr.Number(label="transform",value=1.0)
 
 
105
  vc_submit = gr.Button("Convert", variant="primary")
106
  vc_output1 = gr.Textbox(label="Output Message")
107
  vc_output2 = gr.Audio(label="Output Audio")
108
- gr.inputs.Number(getid, label="transform")
109
  vc_submit.click(vc_fn, [vc_input3, vc_transform], [vc_output1, vc_output2])
110
 
111
  app.launch()
 
101
  with gr.Tabs():
102
  with gr.TabItem("Basic"):
103
  vc_input3 = gr.Audio(label="Input Audio (30s limitation)")
104
+ vc_transform = gr.Number(label="transform", value=1.0)
105
+ vc_id = gr.Number(label="transform", value=1)
106
+ vc_setid = gr.Button("setID", variant="primary")
107
  vc_submit = gr.Button("Convert", variant="primary")
108
  vc_output1 = gr.Textbox(label="Output Message")
109
  vc_output2 = gr.Audio(label="Output Audio")
110
+ vc_setid.click(getid, vc_id)
111
  vc_submit.click(vc_fn, [vc_input3, vc_transform], [vc_output1, vc_output2])
112
 
113
  app.launch()