Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def inference(audio_file):
|
|
17 |
output_list = ast.literal_eval(output)
|
18 |
return format_inference(output_list)
|
19 |
|
20 |
-
inputs = gr.inputs.Audio(label="Input Audio", type="filepath", source="
|
21 |
outputs = gr.outputs.Textbox(label="Voice timestamps", type="auto")
|
22 |
title = "Voice Activity Detection"
|
23 |
description = "<p style='text-align: center'>Record an audio file and detected voices will be timestamped.</p>"
|
|
|
17 |
output_list = ast.literal_eval(output)
|
18 |
return format_inference(output_list)
|
19 |
|
20 |
+
inputs = gr.inputs.Audio(label="Input Audio", type="filepath", source="upload")
|
21 |
outputs = gr.outputs.Textbox(label="Voice timestamps", type="auto")
|
22 |
title = "Voice Activity Detection"
|
23 |
description = "<p style='text-align: center'>Record an audio file and detected voices will be timestamped.</p>"
|