Spaces:
Runtime error
Runtime error
File size: 648 Bytes
ffd5eab f7451c4 ffd5eab f7451c4 ffd5eab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
model = gr.Interface.load("huggingface/pyannote/voice-activity-detection")
def inference(audio_file):
output = model(audio_file)
inputs = gr.inputs.Audio(label="Input Audio", type="filepath", source="microphone")
outputs = gr.outputs.Label(type="auto", label = "Voice timestamps")
title = "Voice Activity Detection"
description = "Record or upload an audio file and detected human voices will be timestamped."
article = "<a href = 'pyannote, https://github.com/pyannote/pyannote-audio"
gr.Interface(inference, inputs, outputs, title=title, description=description, article=article, theme="grass").launch(debug=True)
|