Spaces:
Runtime error
Runtime error
import gradio as gr | |
from your_model_module import process_audio | |
interface = gr.Interface( | |
fn=process_audio, | |
inputs=gr.Audio(type="filepath", label="Upload Audio File"), | |
outputs=[ | |
gr.Audio(label="Foreground Audio 2DFT"), | |
gr.Textbox(label="PSNR (dB) 2DFT", interactive=False), | |
gr.Textbox(label="KL Divergence 2DFT", interactive=False), | |
gr.Audio(label="Foreground Audio Repet"), | |
gr.Textbox(label="PSNR (dB) Repet", interactive=False), | |
gr.Textbox(label="KL Divergence Repet", interactive=False), | |
gr.Audio(label="Foreground Audio Repet Sim"), | |
gr.Textbox(label="PSNR (dB) Repet Sim", interactive=False), | |
gr.Textbox(label="KL Divergence Repet Sim", interactive=False) | |
], | |
title="Audio Foreground Separator", | |
description="Upload an audio file to separate its foreground using 2DFT, Repet, and Repet_Sim models." | |
) | |
interface.launch() |