remove .inputs
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def main():
|
|
16 |
|
17 |
with gr.Blocks() as demo:
|
18 |
with gr.Row():
|
19 |
-
audio_input = gr.
|
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.
|
28 |
-
min_speech_duration_ms = gr.
|
29 |
-
min_silence_duration_ms = gr.
|
30 |
-
window_size_samples = gr.
|
31 |
-
speech_pad_ms = gr.
|
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 |
|