Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,8 @@ def inference(audio_file):
|
|
20 |
inputs = gr.inputs.Audio(label="Input Audio", type="filepath", source="microphone")
|
21 |
outputs = gr.outputs.Textbox(label="Voice timestamps", type="auto")
|
22 |
title = "Voice Activity Detection"
|
23 |
-
description = "<p style='text-align: center'>Record
|
24 |
article = "<p style='text-align: center'>Model by pyannote, https://github.com/pyannote/pyannote-audio</p>"
|
25 |
-
examples = ['talk.wav', 'talk2.wav', 'silence.wav', ]
|
26 |
-
|
27 |
|
28 |
gr.Interface(inference,
|
29 |
inputs,
|
@@ -31,7 +29,6 @@ gr.Interface(inference,
|
|
31 |
title=title,
|
32 |
description=description,
|
33 |
article=article,
|
34 |
-
examples=examples,
|
35 |
theme="grass").launch(debug=True)
|
36 |
|
37 |
|
|
|
20 |
inputs = gr.inputs.Audio(label="Input Audio", type="filepath", source="microphone")
|
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>"
|
24 |
article = "<p style='text-align: center'>Model by pyannote, https://github.com/pyannote/pyannote-audio</p>"
|
|
|
|
|
25 |
|
26 |
gr.Interface(inference,
|
27 |
inputs,
|
|
|
29 |
title=title,
|
30 |
description=description,
|
31 |
article=article,
|
|
|
32 |
theme="grass").launch(debug=True)
|
33 |
|
34 |
|