Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
import hopsworks
|
|
|
3 |
def vocal_remove(audio):
|
4 |
project = hopsworks.login()
|
5 |
mr = project.get_model_registry()
|
6 |
model = mr.get_best_model()
|
7 |
model_path = model.download()
|
8 |
model_path_pkl = model_path + "/vocal_model.pth"
|
9 |
-
|
10 |
|
11 |
|
12 |
return audio
|
|
|
1 |
import gradio as gr
|
2 |
import hopsworks
|
3 |
+
import subprocess
|
4 |
def vocal_remove(audio):
|
5 |
project = hopsworks.login()
|
6 |
mr = project.get_model_registry()
|
7 |
model = mr.get_best_model()
|
8 |
model_path = model.download()
|
9 |
model_path_pkl = model_path + "/vocal_model.pth"
|
10 |
+
subprocess.run(["inference", "-l"])
|
11 |
|
12 |
|
13 |
return audio
|