Spaces:
Sleeping
Sleeping
update
Browse files
main.py
CHANGED
|
@@ -114,12 +114,16 @@ def main():
|
|
| 114 |
type="filepath",
|
| 115 |
label="Upload from disk",
|
| 116 |
)
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
|
|
|
|
|
|
| 120 |
upload_button = gr.Button("Run VAD", variant="primary")
|
| 121 |
-
|
| 122 |
-
|
|
|
|
|
|
|
| 123 |
|
| 124 |
gr.Examples(
|
| 125 |
examples=examples,
|
|
|
|
| 114 |
type="filepath",
|
| 115 |
label="Upload from disk",
|
| 116 |
)
|
| 117 |
+
|
| 118 |
+
with gr.Row():
|
| 119 |
+
uploaded_vad_engine = gr.Dropdown(choices=["nx_vad", "silero_vad"], value="nx_vad", label="vad_engine")
|
| 120 |
+
uploaded_silence_time = gr.Slider(minimum=0.0, maximum=1.0, value=0.3, step=0.01, label="silence time")
|
| 121 |
+
uploaded_longest_activate = gr.Slider(minimum=0.0, maximum=20.0, value=3.0, step=0.1, label="longest activate")
|
| 122 |
upload_button = gr.Button("Run VAD", variant="primary")
|
| 123 |
+
|
| 124 |
+
with gr.Row():
|
| 125 |
+
uploaded_vad_timestamps = gr.Textbox(label="vad_timestamps")
|
| 126 |
+
uploaded_raw_vad_result = gr.Textbox(label="raw_vad_result")
|
| 127 |
|
| 128 |
gr.Examples(
|
| 129 |
examples=examples,
|