clement-pages commited on
Commit
0d951c7
·
1 Parent(s): fa57a43

update space app

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -12,6 +12,25 @@ def apply_pipeline(audio: str) -> tuple:
12
 
13
 
14
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  audio = gr.Audio(type="filepath")
16
  btn = gr.Button("Apply separation pipeline")
17
  source_viewer = SourceViewer(interactive=False)
 
12
 
13
 
14
  with gr.Blocks() as demo:
15
+
16
+ # header
17
+ with gr.Row():
18
+ # pyannote logo
19
+ with gr.Column(scale=1):
20
+ gr.Markdown(
21
+ '<a href="https://github.com/pyannote/pyannote-audio"><img src="https://avatars.githubusercontent.com/u/7559051?s=200&v=4" alt="pyannote logo" width="170"/></a>'
22
+ )
23
+ # space title and description
24
+ with gr.Column(scale=10):
25
+ gr.Markdown('# Speaker diarization and speech separation pipeline')
26
+
27
+ gr.Markdown(
28
+ "This space is dedicated to showing the use of the speaker diarization and speech separation [pipeline](https://huggingface.co/pyannote/speech-separation-ami-1.0) integrated to `pyannote.audio`. To use this space:"
29
+ "\n - Load or record an audio"
30
+ "\n - Click on the apply pipeline button"
31
+ "\n - After pipeline processed the audio, you can then listen for each speaker separetely. Annotations on waveforms correspond to the speaker diarization produced by the pipeline, with one color per speaker."
32
+ )
33
+
34
  audio = gr.Audio(type="filepath")
35
  btn = gr.Button("Apply separation pipeline")
36
  source_viewer = SourceViewer(interactive=False)