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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -22,14 +22,20 @@ 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,
28
  outputs,
29
  title=title,
30
  description=description,
31
  article=article,
32
- theme="grass").launch(debug=True)
 
 
 
33
 
34
 
35
 
 
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
+ examples = [["talk.wav"],
26
+ ["talk2.wav"],
27
+ ["silence.wav"],]
28
+
29
  gr.Interface(inference,
30
  inputs,
31
  outputs,
32
  title=title,
33
  description=description,
34
  article=article,
35
+ examples=examples,
36
+ theme="grass",
37
+ allow_flagging=False,
38
+ ).launch(debug=True)
39
 
40
 
41