vocal_remover / app.py
antonbol's picture
Update app.py
987a619
raw
history blame
546 Bytes
import gradio as gr
import hopsworks
import subprocess
def vocal_remove(audio):
project = hopsworks.login()
mr = project.get_model_registry()
model = mr.get_best_model()
model_path = model.download()
model_path_pkl = model_path + "/vocal_model.pth"
subprocess.run(["inference", "-l"])
return audio
iface = gr.Interface(
fn=vocal_remove,
inputs=gr.Audio(source="upload", type="filepath"),
outputs="audio",
title="Vocal Remover",
description="Removes Vocals from song",
)
iface.launch()