Aashiue commited on
Commit
ed3942b
·
verified ·
1 Parent(s): 7c15827

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from your_model_module import process_audio
3
+
4
+ interface = gr.Interface(
5
+ fn=process_audio,
6
+ inputs=gr.Audio(type="filepath", label="Upload Audio File"),
7
+ outputs=[
8
+ gr.Audio(label="Foreground Audio 2DFT"),
9
+ gr.Textbox(label="PSNR (dB) 2DFT", interactive=False),
10
+ gr.Textbox(label="KL Divergence 2DFT", interactive=False),
11
+ gr.Audio(label="Foreground Audio Repet"),
12
+ gr.Textbox(label="PSNR (dB) Repet", interactive=False),
13
+ gr.Textbox(label="KL Divergence Repet", interactive=False),
14
+ gr.Audio(label="Foreground Audio Repet Sim"),
15
+ gr.Textbox(label="PSNR (dB) Repet Sim", interactive=False),
16
+ gr.Textbox(label="KL Divergence Repet Sim", interactive=False)
17
+ ],
18
+ title="Audio Foreground Separator",
19
+ description="Upload an audio file to separate its foreground using 2DFT, Repet, and Repet_Sim models."
20
+ )
21
+
22
+ interface.launch()