Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,18 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
-
from
|
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 |
],
|
@@ -19,4 +20,4 @@ interface = gr.Interface(
|
|
19 |
description="Upload an audio file to separate its foreground using 2DFT, Repet, and Repet_Sim models."
|
20 |
)
|
21 |
|
22 |
-
interface.launch()
|
|
|
1 |
+
# app.py
|
2 |
import gradio as gr
|
3 |
+
from separation_utils import process_audio
|
4 |
|
5 |
interface = gr.Interface(
|
6 |
fn=process_audio,
|
7 |
inputs=gr.Audio(type="filepath", label="Upload Audio File"),
|
8 |
outputs=[
|
9 |
+
gr.Audio(type="filepath", label="Foreground Audio 2DFT"),
|
10 |
gr.Textbox(label="PSNR (dB) 2DFT", interactive=False),
|
11 |
gr.Textbox(label="KL Divergence 2DFT", interactive=False),
|
12 |
+
gr.Audio(type="filepath", label="Foreground Audio Repet"),
|
13 |
gr.Textbox(label="PSNR (dB) Repet", interactive=False),
|
14 |
gr.Textbox(label="KL Divergence Repet", interactive=False),
|
15 |
+
gr.Audio(type="filepath", label="Foreground Audio Repet Sim"),
|
16 |
gr.Textbox(label="PSNR (dB) Repet Sim", interactive=False),
|
17 |
gr.Textbox(label="KL Divergence Repet Sim", interactive=False)
|
18 |
],
|
|
|
20 |
description="Upload an audio file to separate its foreground using 2DFT, Repet, and Repet_Sim models."
|
21 |
)
|
22 |
|
23 |
+
interface.launch()
|