d22cs051 commited on
Commit
5283045
1 Parent(s): 76d593a

adding examples

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
2
  import torch
3
  import soundfile as sf
4
  from speechbrain.inference.separation import SepformerSeparation as separator
 
5
 
6
 
7
  # defineing model class
@@ -82,6 +83,7 @@ class SourceSeparationApp:
82
  outputs=[output_text, audio_output1, audio_output2],
83
  title="Audio Source Separation",
84
  description="Separate sources from a mixed audio signal.",
 
85
  allow_flagging=False
86
  ).launch()
87
 
 
2
  import torch
3
  import soundfile as sf
4
  from speechbrain.inference.separation import SepformerSeparation as separator
5
+ import os
6
 
7
 
8
  # defineing model class
 
83
  outputs=[output_text, audio_output1, audio_output2],
84
  title="Audio Source Separation",
85
  description="Separate sources from a mixed audio signal.",
86
+ examples=[["examples/" + example] for example in os.listdir("examples")],
87
  allow_flagging=False
88
  ).launch()
89