mizoru commited on
Commit
b865c6d
·
1 Parent(s): 2ddf3fe

remove .inputs

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -16,7 +16,7 @@ def main():
16
 
17
  with gr.Blocks() as demo:
18
  with gr.Row():
19
- audio_input = gr.inputs.Audio(type="filepath")
20
  button1 = gr.Button("Process Audio")
21
  figure = gr.outputs.Image()
22
 
@@ -24,11 +24,11 @@ def main():
24
 
25
  with gr.Row():
26
  probs = gr.State(None)
27
- threshold = gr.inputs.Number(label="Threshold", default=0.5, minimum=0.0, maximum=1.0)
28
- min_speech_duration_ms = gr.inputs.Number(label="Min Speech Duration (ms)", default=250)
29
- min_silence_duration_ms = gr.inputs.Number(label="Min Silence Duration (ms)", default=100)
30
- window_size_samples = gr.inputs.Dropdown(label="Window Size Samples", choices=[512, 1024, 1536], default=1536)
31
- speech_pad_ms = gr.inputs.Number(label="Speech Pad (ms)", default=30)
32
  button2 = gr.Button("Process Parameters")
33
  output_text = gr.outputs.Textbox()
34
 
 
16
 
17
  with gr.Blocks() as demo:
18
  with gr.Row():
19
+ audio_input = gr.Audio(type="filepath")
20
  button1 = gr.Button("Process Audio")
21
  figure = gr.outputs.Image()
22
 
 
24
 
25
  with gr.Row():
26
  probs = gr.State(None)
27
+ threshold = gr.Number(label="Threshold", default=0.5, minimum=0.0, maximum=1.0)
28
+ min_speech_duration_ms = gr.Number(label="Min Speech Duration (ms)", default=250)
29
+ min_silence_duration_ms = gr.Number(label="Min Silence Duration (ms)", default=100)
30
+ window_size_samples = gr.Dropdown(label="Window Size Samples", choices=[512, 1024, 1536], default=1536)
31
+ speech_pad_ms = gr.Number(label="Speech Pad (ms)", default=30)
32
  button2 = gr.Button("Process Parameters")
33
  output_text = gr.outputs.Textbox()
34