baguioni commited on
Commit
076ac90
1 Parent(s): 797b660

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="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>"
 
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>"